Error in SDK PDF Virtual Print

Hi.

 

I'm trying to print a pdf document for the Zebra ZT230-200 printer using the Virtual PDF SDK.

 

In line execution: ZebraPrinter printer = ZebraPrinterFactory.getInstance (connection); The following error occurs:

 

Com.zebra.sdk.comm.ConnectionException: Error writing to connection: ZDesigner ZT230-200dpi ZPL

At com.zebra.sdk.comm.DriverPrinterConnection.write (Unknown Source)

At com.zebra.sdk.comm.ConnectionA.write (Unknown Source)

At com.zebra.sdk.comm.ConnectionA.sendAndWaitForValidResponse (Unknown Source)

At com.zebra.sdk.printer.SGD.GET (Unknown Source)

At com.zebra.sdk.printer.SGD.GET (Unknown Source)

At com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getApplNameHocusPocus (Unknown Source)

At com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getLanguage (Unknown Source)

At com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getInstance (Unknown Source)

At com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getInstance (Unknown Source)

At com.zebra.sdk.printer.ZebraPrinterFactory.getInstance (Unknown Source)

At com.denso.printer.SendPDFExample.main (SendPDFExample.java:35)

 

 

I ask for help to find out why this error occurs.

Anonymous (not verified)
Hi Dener, This kind of

Hi Dener,

This kind of exception can happen in several circumstances.  Have you opened the connection?  Is the printer on?  Please verify.

Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Dener de Alencar
Hi, Robin. Thank you for the

Hi, Robin. Thank you for the contact.

The printer is turned on.

In the line of code: connection.open (); The connection is open and tested.

I do not know what to check.

Would you help me?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments