Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to use crystle report 8.5 to print reports?

Posted on 2004-10-30
Medium Priority
Last Modified: 2011-09-20
I used the crystle report v. 4.5. I can pritn the report using the command crp.action=1 or crp.printreport.
when I install the vesion 8.5, I found problem to print the report. I know that it's a simple thing, but id didn't know how..
any solution??

Question by:omarmallat
  • 2
LVL 14

Expert Comment

ID: 12451043
follow the steps suggested  at following thread

LVL 14

Accepted Solution

sudhakar_koundinya earned 100 total points
ID: 12451045

Option Explicit
Dim CRXApplication As CRAXDDRT.Application
Dim CRXReport As CRAXDDRT.Report
Dim CRXDatabase As CRAXDDRT.Database

Private Sub Form_Load()
    Me.WindowState = 2 'Maximized
End Sub

Private Sub Form_Resize()
    rptCRViewer.Top = 0
    rptCRViewer.Left = 0
    rptCRViewer.Height = ScaleHeight
    rptCRViewer.Width = ScaleWidth
End Sub

Public Sub InitializeForm(rs As ADODB.Recordset, Path As String)
    Set CRXApplication = New CRAXDDRT.Application
    Set CRXReport = New CRAXDDRT.Report
    Set CRXDatabase = CRXReport.Database

    Set CRXReport = CRXApplication.OpenReport(Path, 1)
    CRXDatabase.SetDataSource rs, 3, 1

    CRViewer1.ReportSource = CRXReport
End Sub
LVL 27

Expert Comment

ID: 12453675
Hi omarmallat:
I also have had CR5 converted to later versions ans did not have a problem with crp.action=1
Maybe if you let us know exactly what the problem was to print the report, it will be easier to answer!


Author Comment

ID: 12538473
thank you every body, but the solution was not same as I want. when i used the previous version of crystal report, I did not use the crystal viewer and put it in a form. all I do, I call the report, and the control load a new form containing the report.
can I use now in the new version the same idea. I didn't like to create a form and put in it a crystal viewer. I want to call the report and let it do all things.\
Omar Mallat

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question