PrintBySize 14.0.23

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
corppages
Posts: 1
Joined: Mon Oct 16, 2017 11:39 pm

PrintBySize 14.0.23

Post by corppages » Mon Oct 16, 2017 11:51 pm

Based on the documentation PrintBySize should accept its values in inches. No matter what values I pass to PrintBySize it always seems to scale the print job to fit the page. Perhaps I am missing something but I would expect code sample below to essentially take my image and print it with a 2 inch margin on 8.5 x 11 paper.

Sample Code

Dim ImageID = GDPic.CreateGdPictureImageFromFile(ImageName)
GDPic.PrintSetAutoRotation(True)
GDPic.PrintSetAlignment(PrintAlignment.PrintAlignmentMiddleCenter)
GDPic.PrintBySize(ImageID, 2, 2, 4.5, 7)
GDPic.ReleaseGdPictureImage(ImageID)

Documentation

'Declaration

Public Sub PrintBySize( _
ByVal ImageID As Integer, _
ByVal DstLeft As Single, _
ByVal DstTop As Single, _
ByVal Width As Single, _
ByVal Height As Single _
)

Parameters

ImageID
GdPicture Image Identifier.
DstLeft
Specifies the x-coordinate (in inches) of the upper-left corner of the image into the paper.
DstTop
Specifies the y-coordinate (in inches) of the upper-left corner of the image into the paper.
Width
Specifies the width (in inches) of image into the paper.
Height
Specifies the height (in inches) of image into the paper.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PrintBySize 14.0.23

Post by Loïc » Tue Nov 28, 2017 4:35 pm

Hi,

The problem has been fixed for the next minor release that will be published within a couple of days.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests