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.
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.