Results 1 to 10 of 16

Thread: Fast Printing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Munich
    Posts
    72

    Post Fast Printing

    Hi,

    I have to print reports for about 1000 customers with the following loop directly to the default printer, without any dialog and

    Code:
    repeat
     ....
     if (customernumber < 500) begin
        send printReportA
        send printReportB
      end
      else send printReportC
    loop
    I think that it is necessary to create a seperate cVisualReportClass for each report to put the
    correct send AddFilter to the OnInitialize procedure. Corrrect?

    I wrote a procedure to print like:

    Code:
    procedure PrintReportA
    
      get OpenReport ...
      get phPrintDlg of oMyPrintDialog to hPrintDlg
      send PrintReport of PrintSoLfs hPrintDlg
      send CloseReport of PrintSoLfs sReportId
    end_procedure
    This works very slow for about 60 pages in debugg mode and than I get an ACCESS VIOLATION error.
    Is this the wrong way of doing something like that?

    Brigitte
    Last edited by Brigitte; 2-Dec-2011 at 12:43 AM.
    Brigitte Klein
    FlexiPress

Posting Permissions

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