PrDoc: Save

Save

Saves a document to a mass storage device in the specific file format.

 Public Function Save(
	  ByVal filename As String,
	  ByVal filetype As Long ) As Boolean

Parameters

filename
Name of the file.
filetype
Format of the file. Check the PR_DOCFILEFORMATS enumeration for further details.

Return Values

On error false is returned and the error code and string of the control is set appropriately.

Languages

[Visual Basic] Public Function Save(ByRef filename As String, ByRef filetype As Long) As Boolean

[Delphi] function Save(filename: WideString; filetype: Integer): Boolean;

[C++] bool Save(BSTR filename,long filetype);

Remarks

See Also

Class PrDoc Overview PrDoc Properties PrDoc Methods RuntimeConfig SaveToMem