thilino / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Printing blank data :Ubundu (11.10) to Printer on Windows XP #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

I am using jzebra applet for my asp.net application. I can able to successfully 
 print  on windows based machine(printer on windows and printing from windows 
machine)

but not able to print on ubuntu 11.10 (Printing from ubundu 11.10 to printer on 
windows xp). I have added printer  using zamba in linux for sharing printer.

Status is showing as "Data sent to printer"  but  not printing.

Please help  me solve this issue

Original issue reported on code.google.com by pravee...@gmail.com on 28 May 2012 at 1:49

GoogleCodeExporter commented 8 years ago
This is the first I've read of someone printing from Linux to Windows shared 
printer.

Can you provide some details on how samba is set up (TutorialRawUbuntu, etc)

-Tres

Original comment by tres.fin...@gmail.com on 29 May 2012 at 4:38

GoogleCodeExporter commented 8 years ago
Hello Tres,

Thanks for the mail.
we configured sampa as per the guidance from the following link
http://code.google.com/p/jzebra/wiki/TutorialRawUbuntu

Is this related to any printer driver conflict?

Regards,
Praveen

Original comment by pravee...@gmail.com on 29 May 2012 at 5:01

GoogleCodeExporter commented 8 years ago
There is a character encoding difference between operating systems, so you 
could try:

// Force special DOS/Win characters on UNIX/Linux
       document.jzebra.setEncoding("cp866");       // or
       document.jzebra.setEncoding("cp1252");

But I am not sure if this will help at all.

If this does not work, do you know anyone with samba + cups experience?  Have 
you searched Ubuntu's launchpad for similar printing issues?

Please post anything you find!

-Tres

Original comment by tres.fin...@gmail.com on 29 May 2012 at 5:14

GoogleCodeExporter commented 8 years ago
Also, Macintosh uses CUPS too.  Perhaps Mac users will know more too.

-Tres

Original comment by tres.fin...@gmail.com on 29 May 2012 at 5:15

GoogleCodeExporter commented 8 years ago
Tres,

Let us try.Thanks for your support

Praveen

Original comment by pravee...@gmail.com on 29 May 2012 at 5:23

GoogleCodeExporter commented 8 years ago
Tres,

I am getting the following error now,

"There was  a problem  processing the document 'JZebra Raw printing'

Original comment by pravee...@gmail.com on 29 May 2012 at 5:39

GoogleCodeExporter commented 8 years ago
What type of documents are you printing?  That tutorial is for RAW printing.  
If you're doing HTML or PDF, you'd need to use a different driver.  Can you 
post a code snippet?

-Tres

Original comment by tres.fin...@gmail.com on 29 May 2012 at 5:44

GoogleCodeExporter commented 8 years ago
Doing RAW printing and not any HTML/PDF.Its working fine from windows.

Finally i have used your  DEMO page  for the same,its also failed to print

Original comment by pravee...@gmail.com on 29 May 2012 at 5:49

GoogleCodeExporter commented 8 years ago
Its due to  Driver conflict in  Ubuntu. Working fine for me now

Original comment by pravee...@gmail.com on 8 Jun 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Can you explain how this was resolved so that others will know how to fix it?

Original comment by tres.fin...@gmail.com on 8 Jun 2012 at 4:59

GoogleCodeExporter commented 8 years ago

Solution is
In Windows machine,same printer is added as two instance then on Ubundu one 
instance as shared as row printing driver instead of general driver.

ie,
In Windows machine,i have a printer named "Printer1"  and this printer is 
shared on Ubuntu as "Printer1Ubundu"  for jZebra with the driver "Row Printing".

For normal document printing,i have shared the printer with another name 
"PrinterNormal"  with general Driver.

Hope this will help.Thanks for the support!

Original comment by pravee...@gmail.com on 8 Jun 2012 at 5:06

GoogleCodeExporter commented 8 years ago
Thank you very much

Original comment by tres.fin...@gmail.com on 8 Jun 2012 at 5:17