PDA

View Full Version : print methods


kisoross
11-21-2002, 03:44 AM
I need to print a barcode using a bar code printer.
currently i have some samples written in Visual Basic & QuickBasic.

But I need to print the barcode from an ASP page either using VBScript or JavaScript.

since I cannot run the VB .exe from the web page, and cannot pass the text value to the VB from HTML , I cannot use the existing samples for printing the barcodes from the ASP.

While converting VB to VBScript there is no method "Print" in VBScript.

Can anyone help me to print the barcode from ASP using any other methods.

(since barcode printing requires setting font and giving printing commands line by line, the method should be able to handle line by line printing ; not the entire page printing) .

kwhubby
11-21-2002, 06:51 AM
sorry you can only print the whole page with javascript
( document.print() )
the print() function is the only printing function, and will not do fancy things as vb and others can do, as it looks like you want to do
but you can print a popup or layer thats source is generated to be how you want the thing to look as a finished product

glenngv
11-21-2002, 06:53 AM
Originally posted by kwhubby
document.print()


it's window.print()

Roelf
11-21-2002, 07:08 AM
if you want to print the barcode by using a webpage, do you want it to be printed on the client or on the server? If it has to be done on the server, change your VB-code a little, create a .dll instead of an .exe so you can instantiate an object from it in an asp page, then call a print method, and the printing should work. If you want the print on the client... dont know how to do it

kwhubby
11-21-2002, 07:34 AM
wooops,. DUUUUUUUHH :p . sorry about that!

kisoross
11-21-2002, 09:04 AM
Thanks Roelf.
I will try doing the way you mentioned.