Print Preview Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hplloyd

    Print Preview Control

    Hi,

    I am developing a print preview dialog for my application and have put a
    System.Windows. Forms.PrintPrev iewControl onto a form.

    So far I am able to manipulate the zoom property and the document that is
    displayed. However I also want to put in navigation buttons to navigate from
    one page to the next - but I cant see a property that allows me to set the
    current page?

    How do I change the page in the System.Windows. Forms.PrintPrev iewControl?

    Thanks in advance
  • Ken Tucker [MVP]

    #2
    Re: Print Preview Control

    Hi,

    PrintPreviewCon trol1.StartPage = 3

    PrintPreviewCon trol1.Invalidat e()



    Ken

    ----------------------

    "hplloyd" <hplloyd@discus sions.microsoft .com> wrote in message
    news:82A73D1C-4B53-4D39-BB58-A1525E8EAE50@mi crosoft.com...
    Hi,

    I am developing a print preview dialog for my application and have put a
    System.Windows. Forms.PrintPrev iewControl onto a form.

    So far I am able to manipulate the zoom property and the document that is
    displayed. However I also want to put in navigation buttons to navigate from
    one page to the next - but I cant see a property that allows me to set the
    current page?

    How do I change the page in the System.Windows. Forms.PrintPrev iewControl?

    Thanks in advance


    Comment

    • Ken Tucker [MVP]

      #3
      Re: Print Preview Control

      Hi,

      printdocument.p rint



      Ken
      ----------------------
      "hplloyd" <hplloyd@discus sions.microsoft .com> wrote in message
      news:7C5471CB-2800-4DF1-ADDD-8B4EBAF52A97@mi crosoft.com...
      Thanks ken....One more question....how do I print the previewed
      document???!!!? ??


      "Ken Tucker [MVP]" wrote:
      [color=blue]
      > Hi,
      >
      > PrintPreviewCon trol1.StartPage = 3
      >
      > PrintPreviewCon trol1.Invalidat e()
      >
      >
      >
      > Ken
      >
      > ----------------------
      >
      > "hplloyd" <hplloyd@discus sions.microsoft .com> wrote in message
      > news:82A73D1C-4B53-4D39-BB58-A1525E8EAE50@mi crosoft.com...
      > Hi,
      >
      > I am developing a print preview dialog for my application and have put a
      > System.Windows. Forms.PrintPrev iewControl onto a form.
      >
      > So far I am able to manipulate the zoom property and the document that is
      > displayed. However I also want to put in navigation buttons to navigate
      > from
      > one page to the next - but I cant see a property that allows me to set the
      > current page?
      >
      > How do I change the page in the System.Windows. Forms.PrintPrev iewControl?
      >
      > Thanks in advance
      >
      >
      >[/color]


      Comment

      Working...