in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How to jump page in preview pane via VB code

Last post 01-10-2008 5:45 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-07-2008 7:22 PM

    How to jump page in preview pane via VB code

    I can use C1PrintPreviewControl1.PreviewPane.DoGoPreviousPage and C1PrintPreviewControl1.PreviewPane.DoGoNextPage to jump page in preview with my vb code. But I cannot find any method that like DoGoFirstPage or DoGoLastPage to jump to first or last page. Is there anybody can help me to figure out the proper method that can lead preview to first and last page?. Thank in advance.

    Filed under:
  • 01-10-2008 5:45 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 394

    Re: How to jump page in preview pane via VB code

    I think you're looking for this:

    C1PrintPreviewControl1.ToolBars.Navigation.GoNext.PerformClick()

    Greg

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.