|
Reference
InputText: String
Contents data or template data that needs to be convert to pdf document.
example:
Obj.InputText = "Hi, Nonnoi Solutions" &vbCrLf & "email : contact@nonnoi.com" &vbCrLf & "website : http://www.nonnoi.com"
example:
Obj.InputText = "Hi, %name%" &vbCrLf & "email : %email%" &vbCrLf & "website : %website%"
TextFile(FileName: String)
Method to import text data or template data from file that needs to be convert to pdf document.
Parameters:
FileName - Import text file from this specified name.
LineSpace
Numeric value specifying the space between the line of document. (default = 10)
FontSize
Numeric value specifying the size of font. (default = 8)
Password
String value specifying the password of pdf document.
Author
String value specifying the author of pdf document.
Title:
String value specifying the title of pdf document.
PageWidth
Numeric value specifying the width of the pdf document.
PageHeight
Numeric value specifying the height of the pdf document.
LeftMargin
Numeric value specifying the left margin of the pdf document.
TopMargin
Numeric value specifying the top margin of the pdf document.
ShowPageHeader
Enable or disable show page header information (True or False).
ShowPageFooter
Enable or disable show page footer information (True or False).
PageHeader_Template
String value specifying the page header of pdf document.
example:
Obj.PageHeader_Template = "Page %PageNo% of %TotalPage%"
* %PageNo% is current page number of pdf document.
%TotalPage% is total page of pdf document.
PageFooter_Template
String value specifying the page footer of pdf document.
example:
Obj.PageFooter_Template = "report-data %PageNo%/%TotalPage%"
* %PageNo% is current page number of pdf document.
%TotalPage% is total page of pdf document.
ShowPDF(FileName: String, SaveDialog: Boolean)
Method to generate pdf document and return to browser.
Parameters:
FileName - save pdf document to this specified name. (Option)
SaveDialog: - Enable or disable to show save dialog (True or False). (Option - default = False)
SaveToFile(FileName)
Method to generate pdf document and save to file.
Parameters:
FileName - save pdf document to this specified name.
AddVar(var_name: String, var_value: String)
Method to set value of variable that content in tempate data or file.
example:
Obj.AddVar "name","Nonnoi Solutions"
Obj.AddVar "email","contact@nonnoi.com"
Obj.AddVar "website","http://www.nonnoi.com"
Variable in template file or inputtext must start and end with "%" such as %var1%, %data1%, %web%.
ClearVar
Method to clear variable that set by AddVar method.
RegisterName
if you already registered this product, input your name (company name or customer name) here.
** you must set this value before call ShowPDF or SaveToFile.
RegisterKey
if you already registered this product, input your registration key here.
** you must set this value before call ShowPDF or SaveToFile. |