Jan 18, 2002 #1 dmccallum Programmer Jan 5, 2001 90 US Instead of opening up the Crystal Viewer can the data that would appear in the report be viewed on a VB6 form? If so, how?
Instead of opening up the Crystal Viewer can the data that would appear in the report be viewed on a VB6 form? If so, how?
Jan 19, 2002 #2 jknair Programmer Jan 15, 2002 5 IN Hi, From Crystal you can use export options and export to CSV,text or excel etc. Then in VB , bind this data in to your datagrid... /// In project reference mark crystal report runtime lib selected Global crxapp As craxdrt.Application Global crxrpt As craxdrt.Report crxrpt.ExportOptions.DiskFileName = "your file name" crxrpt.ExportOptions.FormatType = crEFTExcel80 crxrpt.ExportOptions.DestinationType = crEDTDiskFile crxrpt.EnableParameterPrompting = False crxrpt.Export False // Upvote 0 Downvote
Hi, From Crystal you can use export options and export to CSV,text or excel etc. Then in VB , bind this data in to your datagrid... /// In project reference mark crystal report runtime lib selected Global crxapp As craxdrt.Application Global crxrpt As craxdrt.Report crxrpt.ExportOptions.DiskFileName = "your file name" crxrpt.ExportOptions.FormatType = crEFTExcel80 crxrpt.ExportOptions.DestinationType = crEDTDiskFile crxrpt.EnableParameterPrompting = False crxrpt.Export False //
Jan 19, 2002 Thread starter #3 dmccallum Programmer Jan 5, 2001 90 US I want the report to be created at runtime. The above procedure would be if I had saved and exported the data when I created the report? Upvote 0 Downvote
I want the report to be created at runtime. The above procedure would be if I had saved and exported the data when I created the report?
Jan 20, 2002 #4 jknair Programmer Jan 15, 2002 5 IN Hi, No. The above code will create the crystal report on runtime ie why you have to include crystal report runtime library to your project reference. I forgot to add 2 statements in fact this should be the first after declaration Set crxapp = CreateObject("CrystalRuntime.Application" Set crxrpt = crxapp.OpenReport("mycrystalreport.rpt", 1) // Upvote 0 Downvote
Hi, No. The above code will create the crystal report on runtime ie why you have to include crystal report runtime library to your project reference. I forgot to add 2 statements in fact this should be the first after declaration Set crxapp = CreateObject("CrystalRuntime.Application" Set crxrpt = crxapp.OpenReport("mycrystalreport.rpt", 1) //