Results 1 to 4 of 4

Thread: how not override document PrintPreviewControl

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2013
    Posts
    35

    Question how not override document PrintPreviewControl

    You can not overwrite the pages already created by previous documents in PrintPreviewControl

    Example:

    PrintPreviewControl1.Document = PrintDocument1
    PrintPreviewControl1.Document = PrintPreviewControl1.Document + PrintDocument1
    Last edited by jovir; May 4th, 2015 at 07:30 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: how not override document PrintPreviewControl

    I have no idea what you're actually asking for. Your example code makes no sense and if you want to replace already-rendered pages then why did you render them in the first place? You preview the print run and if you want to make changes then you preview again.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2013
    Posts
    35

    Re: how not override document PrintPreviewControl

    Sorry. May have expressed myself badly, I will try to be clearer.

    Let's imagine an interface where there is:
    1- PrintDocument1
    2 PrintPreviewControl1
    3 Treeview

    Where the treeview node controls the display of PrintPreviewControl the pages, the PrintDocument keeps the report.

    The report can be updated, but the information previously generated can not be missed.

    example:
    At first it generates a 4 pages report, after a new report with 10 pages.

    question:
    How not override the pages generated in the first report?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: how not override document PrintPreviewControl

    There is no "overriding". A PrintPreviewControl is for previewing a print run. If what you want is something other than previewing a print run, which this is, then don't use a PrintPreviewControl.

    If what you're saying is that you want to view multiple partial previews and then print the whole lot at the end of it then you'll need to remember the information that generates the previews, e.g. add it to a List, and then perform a single print run at the end using the whole list of data.

    In short, either you're going about this in very much the wrong way or you're still not really describing it very well.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width