CAB A4+/300

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

CAB A4+/300

Postby elcsoft » Thu Jul 01, 2010 4:48 pm

Hello i have a new CAB 4+/300 printer (driver version 4.6.45 (Build 5257)), VPE 6 and Visual Foxpro 9.

I try to print a label with this printer. Because a client has still windows 98 systems i programmed a label print in two versions. Once with VPE6 and once with vpe3.5

Size of the label. Width 10,5 cm length 15 cm

With VPE 6
. The preview looks perfect.
If i start the printer dialogue i can see, that in the printer the sizes of the label are not the upper values. Width is shown 0.10 cm length 64 cm. Even if i correct them, the label is not printed, but minimum 20 blan labels.

The same programm with VPE35 and without the commands

Code: Select all
poVPE.UnitTransformation = VUNIT_FACTOR_MM10
poVPE.EngineRenderMode = VENGINE_RENDER_MODE_VER3

prints perfect.

What can i do.
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby elcsoft » Thu Jul 01, 2010 5:44 pm

here the Code in VPE6
Code: Select all
pnORIENT=iif(tlQUER,2,1)   && tlQUER = true
with poVPE
  .tbMAIL=0
  .OpenDoc
  .UnitTransformation = VUNIT_FACTOR_MM10
  .EngineRenderMode = VENGINE_RENDER_MODE_VER3
  .device=tcDRUCKER
  .PageOrientation=VORIENT_LANDSCAPE
  pnDURAND=.devpaperwidth-punDRRAND
  pnDRRAND=.devpaperheight-punDURAND
  .setdefoutrect(punDLRAND,punDORAND,pnDRRAND,pnDURAND)
  .nLeftMargin  =punDLRAND
  .nTOPMARGIN   =punDORAND
  .nRIGHtMargin =pnDRRAND
  .nBOTTOMMARGIN=pnDURAND
  .AutoBreakMode = AUTO_BREAK_OFF
  .devpaperformat=pnFORMAT     && pnFORMAT=-40
  .pageformat=pnFORMAT
  .devpaperheight=pnHEIGHT   && pnHEIGHT= 1055
  .devpaperwidth=pnWIDTH    && pnWIDTH = 1500
  .pageheight=pnHEIGHT
  .pagewidth=pnWIDTH
  * Here i print my TEXT
  .printdoc(pulMITDSET)    && pulMITDSET=FALSE
  .closedoc()
endwith
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby IDEAL Software Support » Fri Jul 02, 2010 4:22 pm

Do not set the Dev-properties related to page format / page dimensions. Those properties are only there for completeness and special purposes. They can only be modified during processing the BeforePrintNewPage event.

Use PageFormat instead. PageFormat can also be set for each page separately. In addition, if you are using a predefined page format, do NOT set PageWidth and / or PageHeight. Setting those properties might switch the PageFormat to UserDefined.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby elcsoft » Fri Jul 02, 2010 4:38 pm

First i erased the lines **1 the printer printed one empty label, afterwards he stopped and said "kein etikett"
Then i erased the lines **2 then the printer printed one label afterwards he printed about blank labels without stop so i switched off the printer

Code: Select all
pnORIENT=iif(tlQUER,2,1)   && tlQUER = true
 with poVPE
  .tbMAIL=0
  .OpenDoc
  .UnitTransformation = VUNIT_FACTOR_MM10
  .EngineRenderMode = VENGINE_RENDER_MODE_VER3
  .device=tcDRUCKER
  .PageOrientation=VORIENT_LANDSCAPE
   pnDURAND=.devpaperwidth-punDRRAND
   pnDRRAND=.devpaperheight-punDURAND
   .setdefoutrect(punDLRAND,punDORAND,pnDRRAND,pnDURAND)
   .nLeftMargin  =punDLRAND
   .nTOPMARGIN   =punDORAND
   .nRIGHtMargin =pnDRRAND
   .nBOTTOMMARGIN=pnDURAND
    .AutoBreakMode = AUTO_BREAK_OFF
** 1  .devpaperformat=pnFORMAT     && pnFORMAT=-40
** 1 .pageformat=pnFORMAT
** 1  .Devpaperheight=pnHEIGHT   && pnHEIGHT= 1055
** 1  .devpaperwidth=pnWIDTH    && pnWIDTH = 1500
** 2  .pageheight=pnHEIGHT
** 2 .pagewidth=pnWIDTH
   && Here i print my TEXT
   .printdoc(pulMITDSET)    && pulMITDSET=FALSE
   .closedoc()
endwith
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby elcsoft » Fri Jul 02, 2010 4:41 pm

The printer has never 10,5 x 15 cm in his properties he shows 11,6 to 29,70
11,6 is the maximum width of an label.
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby elcsoft » Fri Jul 02, 2010 4:44 pm

The question is, why does he print with the old version of VPE properly with VPE6 not.
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Postby IDEAL Software Support » Fri Jul 02, 2010 4:48 pm

Because VPE v3.50 is from 2002 and we changed the code many times in the past eight years to fix problems with other buggy printer drivers. Please consult the updated documentation of VPE v6.0 regarding PageFormat and the other properties you are using.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Sat Jul 03, 2010 8:43 am

And it may be a problem of the printer driver, if its version changed.

Please note also the description of the flag PRINT_NO_AUTO_PAGE_DIMS for the property PrintOptions.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Sat Jul 03, 2010 10:25 am

We downloaded the driver and debugged the interaction with VPE. Since we do not have this printer available, we must rely on the values we can see in the debugger. We isolated a problem for which we implemented a workaround. Please contact us by e-mail to receive the update for testing purposes.

Note: There are still plenty of problematic printer drivers. If they work in standard applications, like say Word, the manufacturers seem to think their drivers are ok. We constantly are applying patches to VPE to workaround several driver problems. But fixing a problem for one driver sometimes creates problems with another driver, which was working ok with VPE before.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 80 guests