473,287 Members | 1,395 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Crystal "PrintToPrinter" will not print to Zebra Label Printer... HELP!

I have a Zebra S500 and multiple S600 label printers.

http://www.zebra.com/id/zebra/na/en/...cial/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.

Apr 13 '06 #1
13 10265

"ATJaguarX" <AT*******@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
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.


Have you tried appending a form feed to the printer output?

Apr 13 '06 #2
How do I append a form feed to the printer output?

Apr 13 '06 #3
How do I append a form feed to the printer output?

Apr 13 '06 #4

"ATJaguarX" <AT*******@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
How do I append a form feed to the printer output?


That IS a question! Try adding another PrintDocument.Print() to your Printer
Object. Does the printer have a formfeed button? What happens if you print
from VB, take the printer offline and press it?

Apr 13 '06 #5
I'm not using a printer object... I'm using a Crystal Reports
"ReportDoc" object to print the report.

Apr 14 '06 #6
I'm not using a printer object... I'm using a Crystal Reports
"ReportDoc" object to print the report.

Apr 14 '06 #7

"ATJaguarX" <AT*******@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I'm not using a printer object... I'm using a Crystal Reports
"ReportDoc" object to print the report.


If you print more than one page do all but the last one print?

Apr 14 '06 #8
The label is only 1 page. I have tried printing pages 1 to 10...
nothing prints at all.

Apr 14 '06 #9

"ATJaguarX" <AT*******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
The label is only 1 page. I have tried printing pages 1 to 10...
nothing prints at all.


I can only suggest you try printing to a file and looking at the output. You
could also look at the properties for the printer. One final idea, set up a
generic printer and try some different commands with that.

Have you tried zebra.com?


Apr 14 '06 #10
I have tried Zebra.com... they have nothing on there in terms of
Crystal Reports and/or .NET.

Apr 17 '06 #11

"ATJaguarX" <AT*******@gmail.com> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
I have tried Zebra.com... they have nothing on there in terms of
Crystal Reports and/or .NET.


At this point I would look for a copy of 'prn2file' and use it to see what
is actually going to the printer.

Apr 17 '06 #12

I am having a similar problem trying to print using the .NET
printdocument and printdialog controls from my new application.

The Zebra printer will flash the data light, but nothing prints.

I can print to the printer using notepad or word, but not from my .NET
application.

I can print to other printers from my .NET application and I can send
the raw data to the Zebra printer using ZPL instructions... but this
does not provide the quality and data matrix size that I must have.

Have you found a solution to your situation yet?


*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '06 #13
I've developed hundreds of programs that print to a Zebra printer in COBOL.
Try programming using the ELP printer language directly to the printer
instead of using the print spooler program. I can send you a sample output
that prints a bin label that I redirected to file.All fields and field types
are human readable.They five you a program to design your label and than
save the work to a human readable file that you than can program in your
program. This file from the program saves in ELP language.

Steve
"Homer J Simpson" <no****@nowhere.comwrote in message
news:bFP0g.100796$%H.3939@clgrps13...
>
"ATJaguarX" <AT*******@gmail.comwrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
>I have tried Zebra.com... they have nothing on there in terms of
Crystal Reports and/or .NET.

At this point I would look for a copy of 'prn2file' and use it to see what
is actually going to the printer.

Sep 5 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthew Williams | last post by:
Hi, I've produced a Crystal Report in Crystal Reports.NET with rounded corner shaded boxes. When I send it directly to the Printer using PrintToPrinter() it is formated correctly. When I...
4
by: mike | last post by:
Printer - HP4300 in 3 different locations. VB.Net Calling crReportObject.PrintToPrinter(iRptCopies, True, 1, -1) doesn't always return. We have had at least 4 cases now where the printers...
13
by: ATJaguarX | last post by:
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...
1
by: Hexman | last post by:
Hello All, I have a new challenge. I've created a Crystal Report (version 10) and saved the file. Now from my program I want to print it to an Adobe PDF file. My question is: How do I pass...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
0
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.