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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Crystal Report in VC++

Status
Not open for further replies.

mh12az60

Programmer
Jun 29, 2003
2
IN
Dear All,

I am trying to print a report in VC++. My code snippet is as follow:
--------------------------------------------------------
PEOpenEngine();
short printStat = PEPrintReport (
"c:\\admact.rpt",
FALSE, TRUE,
"My Report",
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL);

if(printStat==PE_ERR_NOERROR)
AfxMessageBox(_T("Print successful"));
else
AfxMessageBox(_T("Print unsuccessful"));
---------------------------------------------------------
But everytime i am getting else's dialog box. :-(
I kindly request you to help me in solving this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top