8 Replies - 410 Views - Last Post: 23 July 2019 - 12:42 AM Rate Topic: -----

#1 Khhhhh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-July 19

print on edge of page!

Posted 22 July 2019 - 12:56 AM

Hi all
i'm new in this forum
first i have to say , i was looking for this problem very much.
i have to print on CHEQUE. the problem is hardmargins.
i use printdocument. (i have to)
Printing starts somewhere after the printable area. i know that is hardmargins.but i want to know What should I do to get to the edge of the print job?
PLEASE HELP ME!!!!!!
Is This A Good Question/Topic? 0
  • +

Replies To: print on edge of page!

#2 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6818
  • View blog
  • Posts: 28,228
  • Joined: 12-December 12

Re: print on edge of page!

Posted 22 July 2019 - 03:57 AM

Please post some relevant code (between code tags) to illustrate the problem.
Was This Post Helpful? 0
  • +
  • -

#3 Khhhhh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-July 19

Re: print on edge of page!

Posted 22 July 2019 - 05:04 AM

Dim ChkImage as Image

Private Sub btnPrint_Click(sender As Object, e As EventArgs) Handles btnPrint.Click

	chkImage = Image.FromStream(New System.IO.MemoryStream(CType(clsOriginalImage.fldOriginalImg, Byte())))
	chkImage.RotateFlip(RotateFlipType.Rotate90FlipXY)
	ppd.Document = pd
	ppd.MaximizeBox = True
	ppd.ShowDialog()

End Sub



Private Sub pd_PrintPage(sender As Object, e As PrintPageEventArgs) Handles pd.PrintPage
       e.Graphics.DrawImage(chkImage, New Point(0, 0))
End Sub

''''''''''''Of course i used code below ... but I could not conclude

Private Sub pd_PrintPage(sender As Object, e As PrintPageEventArgs) Handles pd.PrintPage

    pd.DefaultPageSettings.Margins.Right =0
    pd.DefaultPageSettings.Margins.Top = 0
    pd.DefaultPageSettings.Margins.Left = 0
    pd.DefaultPageSettings.Margins.Bottom = 0
    pd.OriginAtMargins = True

    e.Graphics.DrawImage(chkImage, New Point(0, 0))

End Sub

This post has been edited by andrewsw: 22 July 2019 - 05:12 AM
Reason for edit:: added missing [code][/code] tags

Was This Post Helpful? 0
  • +
  • -

#4 Khhhhh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-July 19

Re: print on edge of page!

Posted 22 July 2019 - 05:10 AM

Sorry .
27/5000
I did not know how to use Code Tags!!!!
Was This Post Helpful? 0
  • +
  • -

#5 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6818
  • View blog
  • Posts: 28,228
  • Joined: 12-December 12

Re: print on edge of page!

Posted 22 July 2019 - 05:13 AM

It describes how to add code tags directly within the box where you type your post. There is also a CODE button in the toolbar above the edit box.

I have added them for you this time.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15262
  • View blog
  • Posts: 61,152
  • Joined: 12-June 08

Re: print on edge of page!

Posted 22 July 2019 - 08:58 AM

What is 'ppd' and 'pd'?
Was This Post Helpful? 0
  • +
  • -

#7 Khhhhh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-July 19

Re: print on edge of page!

Posted 22 July 2019 - 11:19 AM

View Postmodi123_1, on 22 July 2019 - 08:58 AM, said:

What is 'ppd' and 'pd'?

ppd=PrintPreviewDocument
pd=PrintDocument


Was This Post Helpful? 0
  • +
  • -

#8 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15262
  • View blog
  • Posts: 61,152
  • Joined: 12-June 08

Re: print on edge of page!

Posted 22 July 2019 - 11:22 AM

I would check the printer driver's settings. See about fiddling with that.

How far away is it printing from the paper edge to actual ink?
Was This Post Helpful? 0
  • +
  • -

#9 Khhhhh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-July 19

Re: print on edge of page!

Posted 23 July 2019 - 12:42 AM

Hello and thanks.
I think , there is equal HardMarginx,y distance to paper edge
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1