Results 1 to 2 of 2

Thread: VB and Crystal Reports

  1. #1
    Guest

    Post

    Is there a web site that has code examples for using VB to run crystal reports. I am looking for the code to export a crystal report into MS word format or HTML


    Thanks
    Ps. A timely responce is greatly appreciated

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    12

    Post

    Hey Wookie... here is some Crystal code:

    CrystalReport1.ReportFileName = "C:\Source.rpt"

    'tell crystal to save the report to a file
    frmQCFMain.CrystalReport1.Destination = crptToFile

    'give crystal the filename...path AND report name"

    frmQCFMain.CrystalReport1.PrintFileName = "C:\ExportedReports\Report.RTF"

    'what kind of file to export to
    frmQCFMain.CrystalReport1.PrintFileType = crptRTF

    'GoForIT
    frmQCFMain.CrystalReport1.PrintReport


    -----------------------------------------

    This example exports an RTF file...which is readable in Word...

    Just change the PRINT FILE TYPE and DEST extention if you want something different!

    Hope that helps!

    ~sam

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