Pass Crystal Reports page break to the export text (.txt)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jackmay
    New Member
    • Nov 2014
    • 1

    Pass Crystal Reports page break to the export text (.txt)

    I have a number of Crystal Reports that I am exporting to text in vb.net.

    It exports just fine, but all as one page - there are no page breaks or page headings.

    I can change this by changing the FormatOptions.L inesPerPage = 0 bit to something else, but the reports being exported are all different.

    What would work for one would not necessarily work for another. I'd rather not have to code something separate for each report.

    Is there a way to pass the Crystal Reports page break to the export text? Or to another format (say, .pdf?)
    Last edited by Frinavale; Nov 7 '14, 02:09 PM. Reason: Removed sentence that has nothing to do with the question and removed link to a barcode thing that also has nothing to do with the question asked
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    This is probably because there are no page breaks in a .txt file.

    I have never worked with crystal reports before but according to these 2 MSDN documents you should be able to export the report to a PDF format:

    Or it looks like you could also use the PdfRtfWordForma tOptions Class.


    -Frinny
    Last edited by Frinavale; Nov 7 '14, 07:39 PM.

    Comment

    Working...