Did you know that Text Control's US office is in Charlotte, NC?
Call your sales representative at: +1 704-544-7445.
 

TX Text Control .NET for Windows Forms

SaveSettings Class

The SaveSettings class provides properties for advanced settings and information during save operations. See the TextControl.Save method for more information.

Syntax

[C#] public sealed class SaveSettings
[Visual Basic] Public NotInheritable Class SaveSettings

Properties

PropertyDescription
BytesWrittenReadOnly. Gets the number of bytes written during a save operation.
CssFileNameHTML only. Sets the path and filename of a CSS file belonging to a HTML document.
CssSaveModeHTML only. Specifies how to save stylesheet data with a HTML document.
DigitalSignatureSpecifies a DigitalSignature object, which defines an X.509 certificate.
DocumentAccessPermissionsSpecifies how a document can be accessed after it has been opened.
DocumentBasePathSets a base path saved in the document that is used to resolve relative file paths.
DocumentTitleSets the document's title that will be saved in the document.
ImageCompressionQualitySets a value between 1 and 100, which is the quality of a lossy image compression used when a document is saved.
ImageExportFilterIndexSets the format used for saving all images contained in the document.
ImageMaxResolutionSets the maximum resolution for all images in the document in dots per inch when the document is saved.
ImageSaveModeDetermines whether the document's images are stored through its data or through its file reference.
ImageSavePathSets a file path that is used to save resources like images when images are saved as file link.
MasterPasswordSpecifies the password for the document's access permissions.
PageMarginsSets the margins saved for the document's pages.
PageSizeSets the width and height saved for the document's pages.
SavedFileRead only. Gets the name and path of the file that has been saved.
SavedStreamTypeRead only. Gets the StreamType of the file that has been saved.
UserPasswordSpecifies the password for the user to open the document.

Example

The following example shows how to use the SaveSettings to create a password protected PDF document.

[C#] TXTextControl.SaveSettings save = new TXTextControl.SaveSettings(); save.UserPassword = "TX Text Control"; textControl1.Save("test.pdf", TXTextControl.StreamType.AdobePDF, save);
[Visual Basic] Dim save As TXTextControl.SaveSettings = New TXTextControl.SaveSettings() save.UserPassword = "TX Text Control" TextControl1.Save("test.pdf", TXTextControl.StreamType.AdobePDF, save)

See Also

 
 
 
Call us: +1 704-544-7445 (United States)
 
 

Products

Support

Downloads

Corporate

Buy Now

About Text Control

Founded in 1991, Text Control is an award-winning Visual Studio Industry Partner and leading vendor of word processing and reporting components for Microsoft development technologies. The products help thousands of developers add comprehensive word processing functionality to their applications. Text Control is 100% self-owned and independent of all investor decisions. Customers benefit from these years of experience, large user-base, and at the same time, appreciate developing with a mature, reliable product.

TX Text Control logo

The TX Text Control logo is a registered trademark in the United States, Europe and other countries.