Labelprinting

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Labelprinting

Postby elcsoft » Fri Mar 31, 2006 11:39 am

We are attempting to use VPE to print labels.
But the page format is not accepted, each label is printed with the distance of din A4

This is done:
Start Menu | Settings | Printers" the window with the installed printers will appear. Right-click on a blank area of the window and choose "Server Properties" from the pop-up menu. In the upcoming dialog, define a custom form of the desired dimensions

Example Code

pnHEIHT=1000
pnWIDHT=1480
pnFORMAT=VPAPER_USER_DEFINED
With poVPE
.devpaperformat=pnFORMAT
.pageformat=pnFORMAT
.Devpaperheight=pnHEIGHT
.devpaperwidth=pnWIDTH
.PageHeight=pnHEIGHT
.PageWidth=pnWIDTH
endwith
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby IDEAL Software Support » Fri Mar 31, 2006 3:24 pm

Do not modify the Dev-properties.

First, make sure you selected the right output device, e.g.
Doc.Device = "Epson LQ-550"

then just set:
Doc.PageWidth = pnWIDTH
Doc.PageHeight = pnHEIGHT

If this does not help your printer driver does not support it.

We experienced that the above properties don't work with some printer drivers. We tested this for example on an Epson LQ-550 dot-matrix printer and it didn't work on WfW 3.11 and NT 3.51, but it worked on Win95. But we heared about, that a LQ-510 printer driver will solve the problem for the LQ-550. So if your printer does not respond to this setting, it is a printer driver problem. In that case you can try to use another compatible printer driver.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests

cron