Results 1 to 2 of 2

Thread: VB Exported Crystal Reports Chart Missing in PDF

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    1

    VB Exported Crystal Reports Chart Missing in PDF

    Problem getting Crystal Reports chart to show in PDF when exported via VB code (below). I use Crystal Reports 9 (Dev), existing report will export fine if using the export function within CR 9. Other reports I have export via the VB code without problem, but the one with a chart has trouble. I am also using VB 6.0. Any help appreciated - Thanks.

    Reference:
    CR 9 ActiveX Designer Design and Runtime Library
    CR 9 ActiveX Designer Runtime Library

    VB Code:
    1. Public CrystalApp As CRAXDRT.Application
    2. Public CrystalReport As CRAXDRT.Report
    3. Public CrystalSubreport As CRAXDRT.Report
    4. Public CrystalTable As CRAXDRT.DatabaseTable
    5. Public CrystalParameter As CRAXDRT.ParameterFieldDefinition
    6. Public CrystalFormula As CRAXDRT.FormulaFieldDefinition
    7. Public CrystalExportOptions As CRAXDRT.ExportOptions
    8.  
    9. Set CrystalApp = CreateObject("CrystalRunTime.Application")
    10. Set CrystalReport = CrystalApp.OpenReport("Path_of_X.rpt")
    11.  
    12. CrystalReport.DiscardSavedData
    13. CrystalReport.PaperOrientation = crDefaultPaperOrientation
    14.  
    15. Set CrystalExportOptions = CrystalReport.ExportOptions
    16. CrystalExportOptions.PDFExportAllPages
    17. CrystalExportOptions.FormatType = crEFTPortableDocFormat
    18. CrystalExportOptions.DiskFileName = "Path_of_X.pdf"
    19. CrystalExportOptions.DestinationType = crEDTDiskFile
    20. CrystalReport.Export False
    Last edited by Hack; Feb 16th, 2006 at 10:52 AM. Reason: Added [vbcode] [/vbcode] tags and for more clarity.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB Exported Crystal Reports Chart Missing in PDF

    Moved to reporting section

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