IPXV_Control::OpenDocWithDlg Method
From PDF XChange PDF SDK
Line 5: | Line 5: | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Shows an ''Open Files'' dialog box that lets the user specify the name of a file to be opened. | |
== Syntax == | == Syntax == | ||
Line 14: | Line 14: | ||
== Parameters == | == Parameters == | ||
;pInitialPath | ;pInitialPath | ||
− | :[in, defaultvalue("")] | + | :[in, defaultvalue("")] The initial folder path. If empty string is specified then current folder will be used. |
;bOnlyPDF | ;bOnlyPDF | ||
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] The flag that restricts the user's choice to PDF files only. |
;bNoErrorUI | ;bNoErrorUI | ||
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] The flag that prevents the showing of open-error message. |
== Return Value == | == Return Value == |
Revision as of 15:21, 28 May 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 pInitialPath, [in, defaultvalue(0)] VARIANT_BOOL bOnlyPDF, [in, defaultvalue(0)] VARIANT_BOOL bNoErrorUI);
Parameters
- pInitialPath
- [in, defaultvalue("")] The initial folder path. If empty string is specified then current folder will be used.
- bOnlyPDF
- [in, defaultvalue(0)] The flag that restricts the user's choice to PDF files only.
- bNoErrorUI
- [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.