My problem is now to print directly, whitout using the viewer, but with userPrompting for the printer selection. It seems that we need to use the PrintOut method (applied to the CrRep object), passing 'True' as first argument, but it doesn't work in my project : the printer dialogBox does not appear ...
To have more information on the printOut method, you can go to PrintOut
Re: How can I view and take printout of crystal report?
Hi Nathi ,
I tried your codes with form1 and form2 but i am getting error "User defined type not defined" i have set crystal report control and crysyal report viewer control in my components and in reference crystal report viewer control and crystal report 8.5 library.
Re: How can I view and take printout of crystal report?
Originally Posted by craigreilly
Which lines cause the error? This will help us figure out your issue better.
Hi, I am also getting the same error. Please find attched the jpg file.
Using Crystal Reports XI, MS Access database
Crystal AcitveX Report Viewer Library 11.0
Re: How can I view and take printout of crystal report?
Sorry - I am getting the same error in VB6/CR10. I will do some additional research and see why. I am sure it has to do with the References and Components.
Re: How can I view and take printout of crystal report?
So here was my final VB6 code with Crystal 10 - export to PDF.
My only refernce was 'Crystal Reports Active X Designer Runtime Library 10'
I did not use any components since I went directly to PDF.
There are about 10 or so different export option types. Play with the * line to see them... XML, Excel, CSV, Word, HTML
VB Code:
Dim Application1 As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
Set Report = Application1.OpenReport("c:\projects.rpt")
Re: How can I view and take printout of crystal report?
I would normally just use the Crystal Reports to get a printout of the datagrid/listview...
I know it can be done on listview. try searching around the forums or post a new question.