PdfFilePathExtensions.SetPdfFilePath<TPrintSettings> Method |
Sets the full PDF file path.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.8
Syntaxpublic static TPrintSettings SetPdfFilePath<TPrintSettings>(
this IPdfFilePath<TPrintSettings> obj,
string pdfFilePath
)
where TPrintSettings : class, IPrintSettings
Parameters
- obj
- Type: DotNetBrowser.Print.Settings.IPdfFilePath<TPrintSettings>
The IPdfFilePath<TPrintSettings> implementation. - pdfFilePath
- Type: System.String
The full PDF file path. Cannot be null, empty, or contain only white space.
Type Parameters
- TPrintSettings
- The specific print settings type.
Return Value
Type:
TPrintSettingsThe current print settings instance.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPdfFilePath<TPrintSettings>. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExceptionsException | Condition |
---|
ArgumentException | The specified file path is null, empty, or contain only white space. |
ArgumentException | The parent directory for the PDF file does not exist and cannot be created. |
See Also