cancel
Showing results for 
Search instead for 
Did you mean: 

Missing ZPL-Command for Print Width (^PW)

Former Member
0 Kudos

Hello,

I process a form for a zebra labelprinter as file (use importing parameter /1bcdwb/formoutput to get the binary data of ZPL). After I get the data stream I save this data as a file on a server. The logistic use this file for printing the label.

If I look at this files, I can't see the command ^PW for print width. But I need this command in the file, because if everyone send a label from a workstation to the labelprinters and the command ^PW is in this files, the printer will change the settings for print width. All following labels will print with the print width of the last label which include a ^PW-Command.

For example:

1. Setting of print width is 800pt

2. Logistic print ZPL-Files from server -> labels ok

3. Everyone send a custom-label from a windows-station to the label printer, the file include the command ^PW600, so we have a print width of 600pt -> the custom label looks well

4. Logistic print again a other ZPL-Files from server -> label is not ok, there only print 600pt, 200pt are lost

Here is a source code part:


  CALL FUNCTION wa_printout-form_fm
    EXPORTING
      /1bcdwb/docparams  = wa_printout-output_param_pdf-docparams
      iwa_doc            = wa_doc
    IMPORTING
      /1bcdwb/formoutput = wa_printout-result-adobe " returns data (PDF...)
    EXCEPTIONS
      using_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 5.

  CALL METHOD save_output_as_file
    EXPORTING
      iw_filename = lw_filename128
      ii_bin_data = li_xstr_tab
    RECEIVING
      rw_error    = lw_error.

Can everyone help me?

Thank you and best regards

Stephan

Accepted Solutions (0)

Answers (3)

Answers (3)

DanielP
Active Participant
0 Kudos

We are also facing this challenge in a TEC-Toshiba printer, using Adobe Forms with Adobe LiveCycle ES3 (release 10.4).

Our TEC-Toshiba printer, set in ZPL emulated mode, expects a ^PW command in the PDF rendered spool file but such command is nowhere to be seen in the spool file.

Any ideas?

/Daniel

Former Member
0 Kudos

Hi,

I'm having the same problem.

Using different label dimensions for the same zebra printer.

I looked at the xml data of the XDC file for zebra (zpl300.xdc).

In the pdl section, there is a sequence command "startPage" this includes an item for pageheight ^LL.

<seq id="startPage">^XA&#xa;^LL<var name="pageHeight"/>&#xa;</seq>

I thought, that adding a command of ^PW will maybe help, but it does not.

<seq id="startPage">^XA&#xa;^PW<var name="pageWidth"/>&#xa;^LL<var name="pageHeight"/>&#xa;</seq>

Does anyone have any new findings or ideas?

thanks,

regards,

Stefan

0 Kudos

Hi,

I'm facing the same problem, does anybody have an answer?

Kind regards,

Claus Christensen