• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Print only specified page

Is it possible to print only a specified page?

I only know that crystal report automatically
does the page break.
Is there any option to control the page to print out.

For example:
One report will turn out to be total of 4 pages.
But I only need to print out the first page of 4.

Any little advice is appreciated.
Thank you.




0
mini1111
Asked:
mini1111
  • 7
  • 6
1 Solution
 
mlmccCommented:
How are you printing the reports?

mlmcc
0
 
mini1111Author Commented:
I print the reports using the crystal report function 'PEOutputTOPrinter()' calling from Delphi.

The report read the data from csv files.





 
0
 
mini1111Author Commented:
I print the reports using the crystal report function 'PEOutputTOPrinter()' calling from Delphi.

The report read the data from csv files.





 
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
mini1111Author Commented:
I print the reports using the crystal report function 'PEOutputTOPrinter()' calling from Delphi.

The report read the data from csv files.





 
0
 
mini1111Author Commented:
I didn't realize I had sent the same comment for 3 times.
I'm sorry for that.
0
 
mlmccCommented:
Don't use refresh use RELOAD QUESTION under your name in the left column.

According to my reference the Report Engine method you are using doesn't make it easy to get at other printing features.  I'll take a look at work where I have the capabilities loaded.

mlmcc
0
 
mlmccCommented:
It is possible.  I haven't been able to put the pieces together yet.

mlmcc
0
 
mini1111Author Commented:
Thank you for the above information.

But I still don't get how to do this.
With what key words should I look through the source?

0
 
mlmccCommented:
You are looking for code that refers tho the following data type.  It is in Global32.bas

Type PEPrintOptions
    StructSize As Integer   ' initialize to # bytes in PEPrintOptions

    ' page and copy numbers are 1-origin
    ' use 0 to preserve the existing settings
    StartPageN As Integer
    stopPageN As Integer

    nReportCopies As Integer
    collation As Integer
    outputFileName As String * PE_FILE_PATH_LEN
End Type


mlmcc
0
 
mini1111Author Commented:
Thank you very much for your support.
I could do this.

0
 
mini1111Author Commented:
Thank you very much for your support.
I could do this.

0
 
mlmccCommented:
Glad to help

mlmcc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now