|
|
|
ASP/Export2PDF is a server side COM component that allows web developers to
export from DAO or ADO recordsets into PDF file.
|
This component is shareware version without limitations on functionality or time, the only limitation is allows to export the 50 records. If you want to remove limitations then you have to register it for US$35.
ASP/Export2PDF Component |
CH.2 |
Features |
- Data export into PDF file.
- Set maximum set of export records.
- Support ASP, PHP (COM class - Windows).
ASP/Export2PDF Component |
CH.3 |
Installation |
- Unzip the ASPExport2PDF.zip file extract to a directory.
- copy register.bat and nonnoi_ASPExport2PDF.dll to the WINNT\SYSTEM32 (or WINDOWS\SYSTEM on Win95/98 or WINDOWS\SYSTEM32 on WinXP Home) directory
- run register.bat
- Done!
ASP/Export2PDF Component |
CH.4 |
Reference |
DateFormat
Numeric value indicating the Date Format:
- 1 for Month/Day/Year.
- 2 for Day/Month/Year.
- 3 for Year/Month/Day.
- 4 for Year/Day/Month.
- 5 for Day/Year/Month.
- 6 for Month/Year/Day.
TrueString
String value that can represent the boolean value true.
FalseString
String value that can represent the boolean value false.
ShowCaption
If ShowCaption is True, then Captions(Field name) are visible in the result data.
BlankIfZero
When true blanks in numeric fields in a recordset are treated equivalent to a zero. The default value is false.
OddColor
Color value indicating the color scheme of exported data for odd rows.
EvenColor
Color value indicating the color scheme of exported data for even rows.
CaptionColor
Color value indicating the color scheme of exported data for caption row.
ex: Obj.CaptionColor = &H498DFF
FieldsCaption as String
Use FieldsCaption to specify the text that the caption displays, followed by one or more comma-delimited field caption.
ex: Obj.FieldsWidth = "ID,Name,Company,Tel."
FieldsWidth as String
Use FieldsWidth to specify the width that the data displays, followed by one or more comma-delimited field width.
ex: Obj.FieldsWidth = "10,15,50,100"
FieldsAlignment as String
String value that can represent the caption value, followed by one or more comma-delimited field alignment.
L for Text is left-justified.
R for Text is right-justified.
C for Text is centered.
ex: Obj.FieldsWidth = "C,C,R,L"
SetPageSize(Width as Integer, Height as Integer)
Use this method to set the document width and height.
ex: Obj.SetPageSize 612,792 ' A4
FourDigitYear
FourDigitYear allow to define a custom year presentation for exported date values.
False Export the year as a two-digit number (00-99).
True Export the year as a four-digit number (0000-9999).
SaveToFile(RS, FileName, MaxRecords)
This method will save the export data to the file specified by FileName.
Method to return PDF file to browser.
Parameters:
RS - The recordset object from ASP script.
FileName - Export data to the file specified by this FileName.
MaxRecords - Set maximum set of export records (Use 0 for Empty table. The default value for MaxRecord is -1, which places no limits on the result set.).
ShowPDF(RS, MaxRecords, DownloadFileName)
Method to return PDF file to browser.
Parameters:
RS - The recordset object from ASP script.
MaxRecords - Set maximum set of export records (Use 0 for Empty table. The default value for MaxRecord is -1, which places no limits on the result set.).
DownloadFileName - Browser show PDF file name by this DownloadFileName.
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.
ASP/Export2PDF Component |
CH.5 |
Example |
ASP :
<%
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)}; dbq=c:\demos.mdb"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "select * from customer" , conn
Set Obj = Server.CreateObject("nonnoi_ASPExport2PDF.ASPExport2PDF")
Obj.ShowCaption = False
' return PDF to browser
Obj.ShowPDF rs
rs.Close
conn.Close
set rs = nothing
set Obj = nothing
%>
ASP (Registered User):
<%
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)}; dbq=c:\demos.mdb"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "select * from customer" , conn
Set Obj = Server.CreateObject("nonnoi_ASPExport2PDF.ASPExport2PDF")
Obj.RegisterName = "Nonnoi"
Obj.RegisterKey = "0123456-789"
Obj.ShowCaption = False
' return PDF to browser
Obj.ShowPDF rs
rs.Close
conn.Close
set rs = nothing
set Obj = nothing
%>
ASP/Export2PDF Component |
CH.6 |
Update & Order |
Click here for prices and discount information.
Click here for product news & information.
Click here for product support or any comment.