|
-
Apr 6th, 2006, 12:13 PM
#1
Thread Starter
Frenzied Member
How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
Hi all,
I already designed reports which are working fine. I need to export it to word or excel or something else.
Please help me. I am using Crystal reports 8.5 and VB 6
Thanks in advance.
-
Apr 6th, 2006, 01:21 PM
#2
Re: How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
You want to export an existing report after it's created? Or you want to create a "report" as a Word document?
-
Apr 6th, 2006, 01:31 PM
#3
Thread Starter
Frenzied Member
Re: How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
I want to export an existing report after it's created.
-
Apr 6th, 2006, 03:27 PM
#4
Re: How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
Where is it being created? To a disk file? To the printer? To memory?
-
Apr 6th, 2006, 08:37 PM
#5
Thread Starter
Frenzied Member
Re: How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
-
Apr 6th, 2006, 10:35 PM
#6
Re: How to Export a crystal report 8.5 file to msword or excel etc in vb6.0?
Should be something like this...
VB Code:
Option Explicit
'Add a reference to CR xx.x ActiveX Designer Runtim Library
Private Sub Command1_Click()
Dim crApp As CRAXDRT.Application
Dim oRpt As CRAXDRT.Report
Set crApp = New CRAXDRT.Application
Set oRpt = crApp.OpenReport("D:\Report1.rpt", 1)
oRpt.ExportOptions.DestinationType = crEDTDiskFile
oRpt.ExportOptions.DiskFileName = "D:\Report1.xls"
oRpt.ExportOptions.FormatType = crEFTExcel80
oRpt.ExportOptions.ExcelUseConstantColumnWidth = True
oRpt.Export False
End Sub
Last edited by RobDog888; Apr 6th, 2006 at 10:39 PM.
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 
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
|