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!

Disabling promptUser parameter of pReport->PrintOut()

Status
Not open for further replies.

winteq02

Programmer
Apr 29, 2003
2
US
Does anyone know what the syntax is for passing a FALSE to PrintOut() function of report so that it won't bring up the Print dialog box? I am using VC++ and I have tried the following, but it does not work:

// the 1st param of PrintOut() function is promptUser
pReport->PrintOut("FALSE");

Thanks for your help in advance.
 
I did look at link. Thanks. I beleive it is possible to make the Print dlg not appear because the first parameter of PrintOut() is promptUser. Note below:

PrintOut([promptUser], [numberOfCopy], [collated], [startPageN], [stopPageN]);

I have tried both of the following syntax below and it does not like it. So I just don't know what to pass to it.

pReport->PrintOut("FALSE");
pReport->PrintOut("False");

Any ideas? Thanks.

Michael Karami
Winteq

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top