School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 353,887 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,193 people online right now.Registration is fast and FREE... Join Now!



Print a scrollable Form

52 Weeks of Code Challenge: WPF

Week #10 of the 52 Weeks of Code Challenge is WPF. If you're a .NET programmer, you should give it a shot. Click Here!
Page 1 of 1

Print a scrollable Form Rate Topic: -----

#1 infoservice  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-February 09


Dream Kudos: 0

Post icon  Posted 01 February 2009 - 12:25 AM

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
		Me.Size = New System.Drawing.Size(830, 1200)
		' MsgBox(Err.Description & "   " & Me.Size.Height.ToString)
		MsgBox(Me.VerticalScroll.Value.ToString)
		Me.VScroll = True

		PageSetupDialog1.PageSettings = New System.Drawing.Printing.PageSettings

		' Initialize dialog's PrinterSettings property to hold user
		' set printer settings.
		PageSetupDialog1.PrinterSettings = New System.Drawing.Printing.PrinterSettings
		PrintForm1.PrinterSettings = New Drawing.Printing.PrinterSettings
		PrintForm1.PrinterSettings.Copies = 1
		PrintForm1.PrinterSettings.DefaultPageSettings.Margins.Left = 10
		PrintForm1.PrinterSettings.DefaultPageSettings.Margins.Right = 1
		PrintForm1.PrinterSettings.DefaultPageSettings.Margins.Top = 1
		PrintForm1.PrinterSettings.DefaultPageSettings.Margins.Bottom = 5
		' PrintForm1.Print(Me, PrintForm1.PrintOption.Scrollable)
		PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)

		' MsgBox("BBBBB   " & Err.Description)
	End Sub

Was This Post Helpful? 0
  • +
  • -


#2 tension  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 13-January 09


Dream Kudos: 0

Re: Print a scrollable Form

Posted 01 February 2009 - 03:01 AM

Is this a question?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month