Rank: Member
Groups: Guest
Joined: 10/14/2004(UTC) Posts: 37
|
When I'm using the print control, and I'm printing a tiff file, it is resized tot a single page. But the page does have large margins at the side. I want tot print the image on a complete A4 paper (a little margin is ok, but the current margins are quite large). Is this built in in the control, or can I correct this manually? The code I'm using for a print order: Code:Private Sub PrintDocument_QueryImage(ByVal sender As Object, ByVal e As Aurigma.GraphicsMill.WinControls.QueryImageEventArgs) Handles PrintDocument.QueryImage
Dim ABitmap As Aurigma.GraphicsMill.Bitmap
ABitmap = BitmapViewer.Bitmap.Clone
e.PrintPlaceholder().Image() = ABitmap
e.HasMoreImages = False
End Sub
As ImageFitMode I'm using the ShrinkToFit Edited by user Monday, December 24, 2007 4:14:01 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello! You may use DefaultPageSettings property of ImagePrintDocument (inherited from System.Drawing.Printing.PrintDocument class) to change margin size. E.g. use the following code to set top and left margin to 10 hundredths of an inch: Code:imagePrintDocument1.DefaultPageSettings.Margins.Left = 10
imagePrintDocument1.DefaultPageSettings.Margins.Top = 10
Edited by user Monday, December 24, 2007 4:14:12 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Guest
Joined: 10/14/2004(UTC) Posts: 37
|
The margins are quite working. When I'm trying to print to a Brother MFC-9880 then the right side of the image is not good printed. When I'm trying to print to a HP Deskjet 940c, I don't get any output... Very strange :S
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Good day, jvv! We are trying to repeat your problem. Unfortunatelly all our results are ok :(. Do results depend on source images? What kind of error are on Brother MFC-9880 printer? Any additional info may be usefull. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Problem with missing output was fixed in update. You can download it here. |
Best regards, Fedor Skvortsov
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.