IPXV_Control::OpenDocWithDlg Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT OpenDocWithDlg([in, defaultvalue("")]  BSTR          sInitialPath,
+
<pre class="brush:cpp;gutter:false">HRESULT OpenDocWithDlg([in, defaultvalue("")]  BSTR          InitialPath,
                       [in, defaultvalue(0)]  VARIANT_BOOL  bOnlyPDF,
+
                       [in, defaultvalue(0)]  VARIANT_BOOL  OnlyPDF,
                       [in, defaultvalue(0)]  VARIANT_BOOL  bNoErrorUI);</pre>
+
                       [in, defaultvalue(0)]  VARIANT_BOOL  NoErrorUI);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sInitialPath
+
;InitialPath
 
:[in, defaultvalue("")]  The initial folder path. If empty string is specified then current folder will be used.
 
:[in, defaultvalue("")]  The initial folder path. If empty string is specified then current folder will be used.
;bOnlyPDF
+
;OnlyPDF
 
:[in, defaultvalue(0)]  The flag that restricts the user's choice to PDF files only.
 
:[in, defaultvalue(0)]  The flag that restricts the user's choice to PDF files only.
;bNoErrorUI
+
;NoErrorUI
 
:[in, defaultvalue(0)]  The flag that prevents the showing of open-error message.
 
:[in, defaultvalue(0)]  The flag that prevents the showing of open-error message.
  

Revision as of 07:26, 12 June 2015


Shows an Open Files dialog box that lets the user specify the name of a file to be opened.

Syntax

HRESULT OpenDocWithDlg([in, defaultvalue("")]  BSTR          InitialPath,
                       [in, defaultvalue(0)]   VARIANT_BOOL  OnlyPDF,
                       [in, defaultvalue(0)]   VARIANT_BOOL  NoErrorUI);

Parameters

InitialPath
[in, defaultvalue("")] The initial folder path. If empty string is specified then current folder will be used.
OnlyPDF
[in, defaultvalue(0)] The flag that restricts the user's choice to PDF files only.
NoErrorUI
[in, defaultvalue(0)] The flag that prevents the showing of open-error message.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXV_Control