Pdf Duo .Net component
This property is used to get and set the text in the Header

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public string Header { get; set; }
Public Property Header As String
	Get
	Set
public:
property String^ Header {
	String^ get ();
	void set (String^ value);
}

Examples

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

try
{
    DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
    conv.Header = "Invoce Document";
    conv.Footer = "* If payment made by Bank transfer kindy please forward to us the copy of the bank transfer slip";
    conv.OpenHTML(file_html);
    conv.SavePDF(file_pdf);
    System.Diagnostics.Process.Start(file_pdf);
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
CopyVB.NET
Dim file_html As String = "K:\hdoc.html"
Dim file_pdf As String = "K:\new.pdf"

Try
    Dim conv As New DuoDimension.HtmlToPdf()
    conv.Header = "Invoce Document"
    conv.Footer = "* If payment made by Bank transfer kindy please forward to us the copy of the bank transfer slip"
    conv.OpenHTML(file_html)
    conv.SavePDF(file_pdf)
    System.Diagnostics.Process.Start(file_pdf)
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

See Also