Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Regenerate Print Preview

Regenerate Print Preview

Scheduled Pinned Locked Moved C#
questionannouncementworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hxxbin
    wrote on last edited by
    #1

    Hi Someone knows, if it's possible regenerate a print preview? I have a form with a Print Preview Control, and if I change the paper orientation via a Page Setup Dialog this don't update the print preview. :confused: Thanks ---- hxxbin

    H 1 Reply Last reply
    0
    • H hxxbin

      Hi Someone knows, if it's possible regenerate a print preview? I have a form with a Print Preview Control, and if I change the paper orientation via a Page Setup Dialog this don't update the print preview. :confused: Thanks ---- hxxbin

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Is the PrintPage event handler called again? Put a breakpoint in your code and see. Otherwise, handle the StartPageChanged event on the PrintPreviewControl.

      Microsoft MVP, Visual C# My Articles

      H 1 Reply Last reply
      0
      • H Heath Stewart

        Is the PrintPage event handler called again? Put a breakpoint in your code and see. Otherwise, handle the StartPageChanged event on the PrintPreviewControl.

        Microsoft MVP, Visual C# My Articles

        H Offline
        H Offline
        hxxbin
        wrote on last edited by
        #3

        I got a stupid idea: this.printPreviewControl1.Document = null; this.pageSetupDialog1.ShowDialog(); this.printPreviewControl1.Document = this.reportDocument1; and works ;P.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups