Type Default Value Read Only Description
[C#]
string

[Visual Basic]
String
"" No A user name to be used for authentication.

 

   

Notes
 

This property determines the authentication user name to be used when accessing secured web sites.

For example you might set this property to "MyServer\Steve" to authenticate as Steve when accessing a particular web site.

This property needs to be used in conjunction with the LogonPassword property.

ABCpdf is a user like any other user. When it is logged in it stays logged in until the session times out or until you explicitly log it out. So if you wish ABCpdf to log on as a different user you must ensure that it is logged out first.

 

   

Example
 

The following example shows this property may be used.

[C#]
Doc theDoc = new Doc();
string theURL = "http://www.top-secret-site.com";
// Assign name and password
theDoc.HtmlOptions.LogonName = "Steve";
theDoc.HtmlOptions.LogonPassword = "stevepassword";
// Add HTML page
theDoc.AddImageUrl(theURL);
// Save the document
theDoc.Save(Server.MapPath("HtmlOptionsLogon.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
Dim theURL As String = "http://www.top-secret-site.com"
' Assign name and password
theDoc.HtmlOptions.LogonName = "Steve"
theDoc.HtmlOptions.LogonPassword = "stevepassword"
' Add HTML page
theDoc.AddImageUrl(theURL)
' Save the document
theDoc.Save(Server.MapPath("HtmlOptionsLogon.pdf"))
theDoc.Clear()