Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic .Net, Printing Crystal Reports w/.rpt file

Status
Not open for further replies.

Fred48

Programmer
Joined
Feb 23, 2004
Messages
62
Location
US

Previous release of our application was running with Visual Basic 6 w/Crystal Reports version 5.1. Our application references

.rpt files to print reports via a File Menu dropdown list option. We completed a conversion from VB 6.0 to VB .Net 2003,
still utilizing Crystal Reports version 5.1.

Here's a sample of the simple logic that is used to print one of our reports via the Crystal Reports object:

Crystal Report Object ==>
CrystalReport1 AxCrystal.AxCrystalReport


CrystalReport1.ReportFileName = AppDir & "sanc.rpt"

CrystalReport1.SelectionFormula = "{SA.MEAS_PRD}='" & Detail_flow_MP & "'"

CrystalReport1.Destination = 1

CrystalReport1.Action = 1 'execute the print command



We're now are in the process of converting to VB .Net 2005 and also Crystal Reports XI .Net Framework version 2.0.

Based on some investigation, I am attempting to accomplish the same processing utilizing the ReportDocument

Object. Can you provide me with some samples on how to utilize the ReportDocument object to perform this

print processing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top