Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Seems Like I haven't been on this site in quite a while.

I am using VB 2010 full version.

 

As the title says. I having problems getting print preview to display the proper view in landscape mode. It stubbornly shows portrait.

 

I am using the PrintPreview control in the hopes I can change printer setup information on the fly while in preview mode.

 

Before I call a dialog containing the printpreview control I am setting PrintDocument.PrintSettings.DefaultPageSettings.Landscape = True

 

Thus far I have less hair and no answers.

Posted

Discovered one way to programmically change the settings without using the dialogs

 

1) Initialize a PageSetupDialog object.

2) Set the Document property to your PrintDocument.

3) Set PageSetup Properties as desired. (PaperSize, Margins, Landscape, Etc..)

4) Do Not use the ShowDialog Method.

5) Launch the PrintPreview Control.

 

I imagine I can do the same with the PrintDialog for its properties.

 

Silly but it works.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...