|
-
Feb 5th, 2006, 10:12 PM
#1
Thread Starter
Junior Member
Help with exporting reports to pdf
Hi,
I have reports for each customer. However, when I output the report it outputs to 1 pdf file for all customers. Is there a way to generate seperate files for each customer without having to drill down each customer and exporting one-by-one?
Thanks
-
Feb 5th, 2006, 11:18 PM
#2
Re: Help with exporting reports to pdf
I assume your running Crystal Reports? And if so what version? Are you using the CR Viewer control?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 5th, 2006, 11:19 PM
#3
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
Im not using VB or anything. Ive just got CR 11 and usually I would just click File>Export, but that wont help me to do individual reports.
-
Feb 5th, 2006, 11:27 PM
#4
Re: Help with exporting reports to pdf
Havent used CR 11 yet but it sounds like it may be a report design issue? If you have all customers in the details section then you would want to change it to have it display a single customer per page or new page on change of detail. Then you can export a particular page which will contain a single customer.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 5th, 2006, 11:31 PM
#5
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
Yes, I have that already. The problem is that I have over 70 customers and I cant manually print page ranges. Also, Each customer has different lengths of pages, so I would have to manually go through each one to print them.
Right now, when I click preview I get a list of all my group headings (customers) and I right click on 1 and click drill down for that particular customer. Doing this for each customer would take ages.
-
Feb 6th, 2006, 12:06 AM
#6
Re: Help with exporting reports to pdf
Sound like you may need to use VB and perform several exports, one per customer.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2006, 12:09 AM
#7
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
Ive never used VB with CR and its been a while since ive used VB at all. Could you please direct me to some guides or tutorials for something like this?
-
Feb 6th, 2006, 12:19 AM
#8
Re: Help with exporting reports to pdf
I believe there is something on http://www.businessobjects.com (CR's website under reporting). Also, searching our forums should also generate some good hits.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2006, 12:47 AM
#9
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
thanks for that, ill give it a go
-
Feb 6th, 2006, 11:16 AM
#10
Junior Member
Re: Help with exporting reports to pdf
Here you got some code from CHM called "CrysDev: A Developer's Guide to Integrating Crystal Reports"
LOCAL oCR AS CRAXDRT.Application
LOCAL oRpt AS CRAXDRT.Report
LOCAL oExport AS CRAXDRT.ExportOptions
oCR = CREATEOBJECT("CrystalRuntime.Application")
oRpt = oCR.OpenReport("C:\Program Files\Crystal Decisions" ;
+ "\Crystal Reports 9\Samples\En\Reports\General Business" ;
+ "\Financial Statement.RPT")
oExport = oRpt.ExportOptions()
oExport.DestinationType = 1 && Disk File
oExport.FormatType = 31 && PDF
oExport.PDFExportAllPages =.T.
oExport.DiskFileName = "D:\Temp\Financial Statement.PDF"
oRpt.Export(.F.)
Regards,
Tribo.
-
Feb 6th, 2006, 07:39 PM
#11
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
is that different to just exporting a report using crystals interface?
-
Feb 7th, 2006, 01:00 AM
#12
Re: Help with exporting reports to pdf
It wont solve the issue as your issue seems to be a report design issue but it can help just as I had posted about it. I also have an VB6/Crystal Report Ex. in my signature but its using the CR Viewer control. What else you can do is to programmatically set the selection formula to just one particular customer and then export the report, and repeat for each customer.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 19th, 2006, 07:20 PM
#13
Thread Starter
Junior Member
Re: Help with exporting reports to pdf
I found some sample vb projects on the business objects support site. There is one that lets you preview a report using the report viewer control. That works and the drill down works. Now I need to be able to export it to pdf. I found a sample on the site which does this, but it doesnt work. I am trying to combine the viewing part with exporting, but it just crashes when I try exporting. Im using Visual BAsic express 2005.
Heres an error Im getting in the crReportDocument.Export() line:
Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overridden.
Last edited by ezzy85; Feb 19th, 2006 at 09:28 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|