Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aspPDF type mismatch error...

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
Hi,

Have been trying to use the aspPDF component but keep getting error when trying to write text to a table cell [mysql varchar field] this works fine when writing integers [mysql int field].

Have emailed persits support - but no reply!

Just wondered if anyone else had this issue?

error:
Code:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Row.Cells(...).AddText'

code:
Code:
Do While Not rs.EOF
   Set Row = Table.Rows.Add(20) ' row height
   param.Add "alignment=left"
   Row.Cells(1).AddText rs("forecourt"), param

'** line where error occurs - varchar format
   Row.Cells(2).AddText rs("car"), param
   
   rs.MoveNext
Loop
 
plz ignore - was a (NULL) field in one of my records
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top