Creates a new APSource instance.
Declaration Syntax| C# | Visual Basic | Visual C++ |
public APSource CreateSource( string uri, APSourceFormat format )
Public Function CreateSource ( _ uri As String, _ format As APSourceFormat _ ) As APSource
public: APSource^ CreateSource( String^ uri, APSourceFormat format )
Parameters- uri (String)
- Path or URI to source document.
- format (APSourceFormat)
- Source document format.
Return ValueThe new APSource instance.
Exceptions| Exception | Condition |
|---|---|
| ObjectDisposedException | APEngine instance is disposed. |
| InvalidOperationException | APEngine instance is notAPEngine -or- APEngine instance is not in running mode. |
| APSourceException | Source uri can not be opened. |
| ArgumentException | format is invalid or unsupported by the current product version. -or- uri is not the valid path or URI. |
| ArgumentNullException | uri is null. |
Assembly: Altsoft.Xml2PDF.Server (Module: Altsoft.Xml2PDF.Server)