Pdf Duo .Net component
Convert the HTML to the PDF string, reforming HTML's tags into PDF format structure.

Namespace: DuoDimension
Assembly: pdfduo-net (in pdfduo-net.dll) Version: 2.4.0.0 (2.4)

Syntax

         
 C#  Visual Basic  Visual C++ 
public string ToString()
Public Function ToString As String
public:
String^ ToString()

Return Value

The resulting PDF as a string.

Examples

CopyC#
string file_html = @"K:\hdoc.html";

try
{
    DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
    conv.OpenHTML(file_html);
    string pdf_st = conv.ToString();
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
CopyVB.NET
Dim file_html As String = "K:\hdoc.html"
Dim st As String

Try
    Dim conv As New DuoDimension.HtmlToPdf()
    conv.OpenHTML(file_html)
    st = conv.ToString()
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

See Also