Description
Assembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
CopyC#
CopyVB.NET
If using PDFDuo .Net Full Version, put your License Code as a parameter.
Otherwise, if you are using Trial, you don't need include this method into your code.
(Free version doesn't have SetLicenseCode method).
Namespace:
DuoDimensionAssembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
Syntax
| C# | Visual Basic |
public static void SetLicenseCode( string license_code )
Public Shared Sub SetLicenseCode ( _ license_code As String _ )
Parameters
- license_code
- String
The license code getting via email.
Examples
string file_html = @"K:\hdoc.html"; string file_pdf = @"K:\new.pdf"; try { DuoDimension.HtmlToPdf.SetLicenseCode("YOUR-LICENSE-CODE-HERE"); DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf(); conv.OpenHTML(file_html); conv.SavePDF(file_pdf); System.Diagnostics.Process.Start(file_pdf); } catch (Exception ex) { MessageBox.Show(ex.Message); }
Dim file_html As String = "K:\hdoc.html" Dim file_pdf As String = "K:\new.pdf" Try DuoDimension.HtmlToPdf.SetLicenseCode("YOUR-LICENSE-CODE-HERE") Dim conv As New DuoDimension.HtmlToPdf() 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
HtmlToPdf Class
DuoDimension Namespace