IPXV_Inst::ShowSaveFileDlg Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 3: Line 3:
 
{{#customTitle:IPXV_Inst::ShowSaveFileDlg Method}}
 
{{#customTitle:IPXV_Inst::ShowSaveFileDlg Method}}
 
{{#parentPage:PXV:IPXV_Inst#Methods|ShowSaveFileDlg|method}}
 
{{#parentPage:PXV:IPXV_Inst#Methods|ShowSaveFileDlg|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Creates an Save File dialog box that lets the user specify the name of a file to save.  
  
 
== Syntax ==
 
== Syntax ==
Line 22: Line 21:
 
== Parameters ==
 
== Parameters ==
 
;pFileFilters
 
;pFileFilters
:[in, defaultvalue("")]  Value of BSTR.
+
:[in, defaultvalue("")]  Specifies the set of file-filters for open dialog. For example:
 +
::<tt>PDF Documents (*.pdf)|*.pdf|All Files (*.*)|*.*</tt>
 +
::also you may specify some predefined sets:
 +
::<tt><allSupp></tt> - specifies all supported filters;
 +
::<tt><allSuppImg></tt> - specifies all supported images filters;
 +
::<tt><allSuppRasterImg></tt> - specifies all supported rester-images filters;
 
;pInitialFolderName
 
;pInitialFolderName
:[in, defaultvalue("")]  Value of BSTR.
+
:[in, defaultvalue("")]  The initial folder path. If empty string is specified then current folder will be used.
 
;pInitialFileName
 
;pInitialFileName
:[in, defaultvalue("")]  Value of BSTR.
+
:[in, defaultvalue("")]  The initial file name.
 
;pDefaultExt
 
;pDefaultExt
:[in, defaultvalue("")]  Value of BSTR.
+
:[in, defaultvalue("")]  The default extension.
 
;pDlgTitle
 
;pDlgTitle
:[in, defaultvalue("")]  Value of BSTR.
+
:[in, defaultvalue("")]  The title of dialog.
 
;hWndParent
 
;hWndParent
:[in, defaultvalue(0)]  Value of HANDLE_T.
+
:[in, defaultvalue(0)]  The optional parameter that specifies the handle of parent window.
 
;bOverwritePrompt
 
;bOverwritePrompt
:[in, defaultvalue(-1)]  Value of VARIANT_BOOL.
+
:[in, defaultvalue(-1)]  The flag that causes to generate a message box if the selected file already exists. The user must confirm whether to overwrite the file.
 
;bShowHidden
 
;bShowHidden
:[in, defaultvalue(0)]  Value of VARIANT_BOOL.
+
:[in, defaultvalue(0)]  Forces the showing of system and hidden files.
 
;nFilterIndex
 
;nFilterIndex
:[in, defaultvalue(0)]  Value of LONG.
+
:[in, defaultvalue(0)]  The index of filter that should be selected initially.
 
;ppRes
 
;ppRes
:[out, retval]  Pointer to [[PXV:IPXV_SaveFileDlgRes|IPXV_SaveFileDlgRes]].
+
:[out, retval]  Returns pointer to [[PXV:IPXV_SaveFileDlgRes|IPXV_SaveFileDlgRes]] object.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 18:33, 26 May 2015


Creates an Save File dialog box that lets the user specify the name of a file to save.

Syntax

HRESULT ShowSaveFileDlg([in, defaultvalue("")]  BSTR                   pFileFilters,
                        [in, defaultvalue("")]  BSTR                   pInitialFolderName,
                        [in, defaultvalue("")]  BSTR                   pInitialFileName,
                        [in, defaultvalue("")]  BSTR                   pDefaultExt,
                        [in, defaultvalue("")]  BSTR                   pDlgTitle,
                        [in, defaultvalue(0)]   HANDLE_T               hWndParent,
                        [in, defaultvalue(-1)]  VARIANT_BOOL           bOverwritePrompt,
                        [in, defaultvalue(0)]   VARIANT_BOOL           bShowHidden,
                        [in, defaultvalue(0)]   LONG                   nFilterIndex,
                        [out, retval]           IPXV_SaveFileDlgRes**  ppRes);

Parameters

pFileFilters
[in, defaultvalue("")] Specifies the set of file-filters for open dialog. For example:
PDF Documents (*.pdf)|*.pdf|All Files (*.*)|*.*
also you may specify some predefined sets:
<allSupp> - specifies all supported filters;
<allSuppImg> - specifies all supported images filters;
<allSuppRasterImg> - specifies all supported rester-images filters;
pInitialFolderName
[in, defaultvalue("")] The initial folder path. If empty string is specified then current folder will be used.
pInitialFileName
[in, defaultvalue("")] The initial file name.
pDefaultExt
[in, defaultvalue("")] The default extension.
pDlgTitle
[in, defaultvalue("")] The title of dialog.
hWndParent
[in, defaultvalue(0)] The optional parameter that specifies the handle of parent window.
bOverwritePrompt
[in, defaultvalue(-1)] The flag that causes to generate a message box if the selected file already exists. The user must confirm whether to overwrite the file.
bShowHidden
[in, defaultvalue(0)] Forces the showing of system and hidden files.
nFilterIndex
[in, defaultvalue(0)] The index of filter that should be selected initially.
ppRes
[out, retval] Returns pointer to IPXV_SaveFileDlgRes object.

Return Value

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

See Also

IPXV_Inst