|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hi i have the FDF Toolkit installed on my server
and am trying to view my pdf form with information gathered from my database in it here is my current code the form up there is just for testing the bit in red refers to the field name in the form and the field name in the database im currently gettign the below error messaage thanks for any help ![]() Quote:
Code:
<!--#include virtual='/includes/dbconnection.inc'-->
<%
set fdf = server.createobject("FdfApp.FdfApp")
set output = fdf.FDFCreate
ID = request.querystring("ID")
SQL = "SELECT * FROM tblRegistrations WHERE UserID='"& ID &"'"
set rs = server.CreateObject("ADODB.Recorset")
rs.open SQl, adoCon
'from a recordset
output.FDFSetValue "name",rs("UName"), false
'from a server host
output.FDFSetFile "http://www.constructionworks.org/seekers/vivergo/register.pdf"
response.contenttype = "application/Vnd.fdf"
response.binarywrite(output.FDFSavetoBuf)
output.close
set output = nothing
set fdf = nothing
%>
|
|
#2
|
||||
|
||||
|
This may be your problem.
Code:
set rs = server.CreateObject("ADODB.Recordset")
__________________
Policy Check I'd rather have a full bottle in front of me, than a full frontal lobotomy...
|
|
#3
|
|||
|
|||
|
whoops thanks for spotting that but the error refers to this line
set fdf = server.createobject("FdfApp.FdfApp") |
|
#4
|
||||
|
||||
|
I assumed it related to the line you had highlighted.
If the error points to the createobject line, most likely that the FDF dll's haven't been registered correctly on the server. Try this link or google error '800401f3' fdf for more links. Hope that helps. |
|
#5
|
||||
|
||||
|
close all your Access programs and reload the page.
you were viewing the database with Access, thus locking it. |
|
#6
|
|||
|
|||
|
no still didnt work, i wasnt viewing it or anything
try the link here http://www.constructionworks.org/se.../registrees.asp be able to see the page Quote:
|
|
#7
|
||||
|
||||
|
so it means the component is trying to read from database that does
not exist. learn how it works and what you need to change, somewhere you probably need to tell it what database to use and where to find it. |
|
#8
|
|||
|
|||
|
right ive sorted out my connection to the db so that definitley works now now what we have is
Quote:
|
|
#9
|
||||
|
||||
|
what is line 8?
|
|
#10
|
||||
|
||||
|
Quote:
The FDF dll's are not registered on the server. |
|
#11
|
|||
|
|||
|
ahh right, i had a message from my host saying they where!!!
grrrrrrrrr, thanks for letting me know though cheers |
|
#12
|
||||
|