View Single Post
  #10 (permalink)  
Old April 23rd, 2006, 08:09 PM
murari murari is offline
Registered User
 
Join Date: Apr 2006
Location: Cochin, Kerala, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to murari
Default

Quote:
quote:Originally posted by ahmed_hammam70
 You Can Use the following code after adding the component : Crystal ActiveX Report Viewer Library 10.0
-----------
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
Set Report = Appl.OpenReport("d:\Report3.rpt")
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
----------

where CRViewer1 is the name of the added component to your project

Dear ahmed_hammam70,
I am in the look out of a solution of previewing and printing a report created in crystal report 8x through VB6. I was directed to this forum link and with the help of your code, I could preview the report. But I could not get the same printed even if I change the "CRViewer1 propoerty to print report. Can you help me ?


with regards

Murari


Murari
murariraghavan@yahoo.co.in
Reply With Quote