scaling vpe-documents for printing

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

scaling vpe-documents for printing

Postby IDEAL Software Support » Tue Nov 23, 2004 4:44 pm

Hallo,

With the property Scale Percent it is possible to set the scale for
the preview in percent. But printing cannot be scaled in the version
3.5. Is scaling for printing planned for a future version?

Regards
Daniela Kipfer
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 4:45 pm

This is already possible:

see PrintScale in the manual / help file:
This property sets the scale for printing. It does not affect the scale in the preview.
Since the X- and Y- dimensions are scaled simultaneously, this property changes the width and the height of the printout at the same time. The change of the PrintScale implies a change of the positions of all object's contained in the document.
This might lead into problems regarding the positioning of the topmost / leftmost objects:
if for example a text is placed at the position (200, 200) and the PrintScale is set to 0.75 then the position of the text is changed to 0.75 * (200, 200) = (150, 150). If you have placed objects very near to the unprintable area, or if you have set the PrintScale to a very small value, objects might be moved into the unprintable area and clipped.

This can be corrected by setting the PrintOffsetX- and PrintOffsetY- properties. By using these properties you can align the printout anywhere on the paper, even on the center.
The PrintScale property is not stored in VPE Document files. Therefore VPEView - the Document Viewer - will print all documents unscaled.

property double PrintScale
read / write; runtime only

Default:
1.0 which means the printout is unscaled (the scaling factor is 1:1)

Remarks:
The setting for the PrintScale is not stored in VPE Document files.

Example:
VPE.PrintScale = 0.5
Sets the print scale to 0.5 : 1, i.e. the printout is half the size than the original size.

VPE.PrintScale = 4.0
Sets the print scale to 4 : 1, i.e. the printout is for times bigger than the original size.

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


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 18 guests