export to text format from vb6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolminded
    New Member
    • Mar 2007
    • 137

    export to text format from vb6

    hello everybody,
    i have a viewer to view the report, but actually i wanted to export it in the txt format directly.
    i did:
    Report.ExportOp tions.Destinati onType = crEDTDiskFile
    Report.ExportOp tions.FormatTyp e = crEFTText
    Report.ExportOp tions.DiskFileN ame = "D:\text.TX T"
    Report.ExportOp tions.NumberOfL inesPerPage = 32
    Report.Export (False)

    what i wanted is to print 32 lines in each page, but it prints all the lines in a single page.
    how can i solve this problem?
    any feedback is appreciated.

    thanx in advance
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Im not sure the text format allows you to set the number of pages. Not even sure that there are actually pages in a text file.

    Perhaps you should use a PDF or a DOC, where you can have many pages.

    Comment

    Working...