hi,
I have read documentation of Edraw OCX, and I have a question related to print function. Following is help material taken from documentation:
PromptUser: Indicates whether the user is prompted for the value of the parameter. PrinterName: Indicates the name of printer. Gets an empty string if the default printer is used.
PrinterName: Indicates the name of printer. Gets an empty string if the default printer is used. Copies: Sets the number of copies of the document to print.
FromPage: Sets the page number of the first page to print.
ToPage: Sets the number of the last page to print.
OutputFile: Sets the name of an optional file to which trace replay output is streamed.
Return Value:
Nonzero if successful; otherwise 0.
Kindly inform me about PromptUser parameter. What is use of this parameter? I have seen VC++ sample Demo. This is an optional parameter. This variable/parameter is not set to any value in this sample. Any related information?
Thanks,
Faizan
One Response to “”
Leave a Reply
You must be logged in to post a comment.
November 18th, 2011 at 2:26 pm
Only set the PromptUser as false to print the opened file silently. For the C++ program, you can set it as follow:
VARIANT varPromptUser;
varPromptUser.vt = VT_BOOL; varPromptUser.boolVal = VARIANT_FALSE;