|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#16
|
||||
|
||||
|
Quote:
![]() *waits patiently for jesus* |
|
#17
|
|||
|
|||
|
hey! lol
i said its wasnt the recordset, i changed that straight away :P i wasnt installed, im in communication with my host now trying to get them to install it. |
|
#18
|
|||
|
|||
|
right now where cooking, i defintley have the toolkit installed now
problem is i get a page cannot be displayed error message with thsi code i have friendly error messages turned off too... anyone see why by the below, or hint at what it could be? thanks Code:
<!--#include virtual='/includes/dbconnection.inc'-->
<%
ID = request.querystring("ID")
SQL = "SELECT * FROM tblRegistrations WHERE UserID="& ID
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL, adoCon
set fdf = Server.CreateObject("FdfApp.FdfApp")
set output = fdf.FDFCreate
'from a recordset
output.FDFSetValue "name",rs("UName"), false
'from a server host
output.FDFSetFile "http://www.constructionworks.org/vivergo/register.pdf"
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite outputFDF.FDFSaveToBuf
output.close
set output = nothing
set fdf = nothing
%>
|
|
#19
|
||||
|
||||
|
The page is not where you're looking for it....
Based on your previous link, try this. Hope that helps.
__________________
Policy Check I'd rather have a full bottle in front of me, than a full frontal lobotomy...
|
|
#20
|
|||
|
|||
|
i tried that link, then it says missing UserID so i change the link too...
http://www.constructionworks.org/vi...strees.asp?ID=1 then i get pagfe cant be displayed again :S |
|
#21
|
||||
|
||||
|
Try just a simple example to start with to make sure the FDF dll is working correctly:-
Code:
set fdf = Server.CreateObject("FdfApp.FdfApp")
set output = fdf.FDFCreate
'from a recordset
output.FDFSetValue "name","This is my name", false
'from a server host
output.FDFSetFile "http://www.constructionworks.org/vivergo/register.pdf"
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite outputFDF.FDFSaveToBuf
output.close
set output = nothing
set fdf = nothing
You also need to make sure you have the .fdf MIME type set on the server. It should be:- extension=.fdf content type=application/vnd.fdf Last edited by richyrich : May 9th, 2008 at 08:15 AM. |
|
#22
|
|||
|
|||
|
it doesnt work :S
my host has done the following... Quote:
this code out of the fdf examples folder works fine though Code:
<%@ Language=VBScript %>
<%
'ADOBE SYSTEMS INCORPORATED
'Copyright [1999] - [2001] Adobe Systems Incorporated
'All Rights Reserved
'NOTICE: Adobe permits you to use, modify, and distribute
'this file in accordance with the terms of the Adobe license
'agreement accompanying it. If you have received this file
'from a source other than Adobe, then your use, modification,
'or distribution of it requires the prior written permission of Adobe.
Set FdfAcX = Server.CreateObject("FdfApp.FdfApp")
Set outputFDF = FdfAcX.FDFCreate
outputFDF.FDFSetValue "Date", "December 31 1999", False
outputFDF.FDFSetValue "Name", "John Clay", False
outputFDF.FDFSetValue "Address", "12 Saratoga Ave", False
outputFDF.FDFSetValue "City", "Saratoga", False
outputFDF.FDFSetValue "State", "CA", False
outputFDF.FDFSetFile "http://www.constructionworks.org/vivergo/registration_form.pdf"
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite outputFDF.FDFSaveToBuf
outputFDF.FDFClose
%>
EDIT:: well when i say work i mean that putting the url .asp in opens a my pdf doc |
|
#23
|
||||
|
||||
|
Try changing
Code:
output.close to Code:
output.FDFClose |
|
#24
|
|||
|
|||
|
right i got the test code you gave me working
changed Response.BinaryWrite outputFDF.FDFSaveToBuf to Response.BinaryWrite output.FDFSaveToBuf so ive got the pdf open now, so when i go the the url the pdf opens but doesnt have the name field filled in where do i set the field name in adobe livecycle? i prseumed its under object binding and i set it to Name but the "name this is my name" does not appear in the field |
|
#25
|
|||
|
|||
|
another update lol
this code Code:
<!--#include virtual='/includes/dbconnection.inc'-->
<%
ID = request.querystring("ID")
SQL = "SELECT * FROM tblRegistrations WHERE UserID="& ID
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL, adoCon
set fdf = Server.CreateObject("FdfApp.FdfApp")
set output = fdf.FDFCreate
'from a recordset
output.FDFSetValue "name",rs("UName"), false
'from a server host
output.FDFSetFile "http://www.constructionworks.org/vivergo/register.pdf"
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite output.FDFSaveToBuf
output.FDFclose
set output = nothing
set fdf = nothing
%>
opens the pdf but no data filled in now i changed these two lines to make it work Response.BinaryWrite output.FDFSaveToBuf output.FDFclose |
|
#26
|
||||
|
||||
|
When I go to http://www.constructionworks.org/vi...strees.asp?ID=1 it brings up the PDF with "Name" filled in in the Name field.
Is that right? |
|
#27
|
|||
|
|||
|
no that was me trying to guess what part of the field i have to put as name to get it to be filled in, it should say this is my name
i changed it back now i think it works just my textfields in my pdf form dont have the right names the bit in red right? where i set name? Last edited by jesushax : May 9th, 2008 at 09:14 AM. Reason: took image out, masssive!!! |