A
ATJaguarX
I have a Zebra S500 and multiple S600 label printers.
http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s600.html
They are currently being used in our legacy Foxpro application just
fine. We are upgrading to ASP.NET and Crystal XI. I need to automate
the process of printing these labels, so that when the use performs a
specific action on the web app, the label automatically prints. The
user cannot be taken to a "Print Preview" page... the label has to just
print.
Here is my code:
With ReportDoc
.SetDataSource(MyDataSet)
.PrintOptions.PrinterName = "MyZebra"
.PrintToPrinter(1, False, 1, 1)
End With
Simple and sweet.... but it doesn't work. If I change the PrinterName
to our HP Laserjet 4 printer... it works just fine. If I take the user
to a print preview window and allow them to print from there (by
selecting the Zebra label printer), it also works just fine.
A thing to point out... when I hit the code "PrintToPrinter" the
activity light on the Zebra Label Printer blinks once... and thats
it... nothing else happens. So I know its getting something, but it is
apparently missing something as well.
I have gone as far as setting the PaperSize, PaperSource, PageMargins,
PaperOrientation to try to find something to make it print... but no
such luck.
ANY help would be greatly appreciated.
http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s600.html
They are currently being used in our legacy Foxpro application just
fine. We are upgrading to ASP.NET and Crystal XI. I need to automate
the process of printing these labels, so that when the use performs a
specific action on the web app, the label automatically prints. The
user cannot be taken to a "Print Preview" page... the label has to just
print.
Here is my code:
With ReportDoc
.SetDataSource(MyDataSet)
.PrintOptions.PrinterName = "MyZebra"
.PrintToPrinter(1, False, 1, 1)
End With
Simple and sweet.... but it doesn't work. If I change the PrinterName
to our HP Laserjet 4 printer... it works just fine. If I take the user
to a print preview window and allow them to print from there (by
selecting the Zebra label printer), it also works just fine.
A thing to point out... when I hit the code "PrintToPrinter" the
activity light on the Zebra Label Printer blinks once... and thats
it... nothing else happens. So I know its getting something, but it is
apparently missing something as well.
I have gone as far as setting the PaperSize, PaperSource, PageMargins,
PaperOrientation to try to find something to make it print... but no
such luck.
ANY help would be greatly appreciated.