hi,

I have read documentation of Edraw OCX, and I have a question related to print function. Following is help material taken from documentation:

 

Function: HRESULT PrintOut([in, optional] VARIANT PromptUser, [in, optional] VARIANT PrinterName, [in, optional] VARIANT Copies, [in, optional] VARIANT FromPage, [in, optional] VARIANT ToPage, [in, optional] VARIANT OutputFile);Description: Prints current document to specific printer with settings.Parameters:

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