ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old May 9th, 2008, 04:45 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
Quote:
Originally Posted by richyrich
Who knows eh SW??? :shrugs shoulders:
judging from the past, I can bet on this.
*waits patiently for jesus*

Reply With Quote
  #17  
Old May 9th, 2008, 05:37 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 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.

Reply With Quote
  #18  
Old May 9th, 2008, 06:27 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
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

%>

Reply With Quote
  #19  
Old May 9th, 2008, 06:54 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,185 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 12 h 15 m 45 sec
Reputation Power: 1209
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...

Reply With Quote
  #20  
Old May 9th, 2008, 07:47 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
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

Reply With Quote
  #21  
Old May 9th, 2008, 08:10 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,185 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 12 h 15 m 45 sec
Reputation Power: 1209
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.

Reply With Quote
  #22  
Old May 9th, 2008, 08:14 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
it doesnt work :S

my host has done the following...

Quote:
I copied Headers and Libraries/WIN/FdfAcx.dll to system32
and Headers and Libraries/WIN/C/FdfTk.dll to system32
i ran "regsvr32 fdfacx.dll" which completed successfully
i also added read & execute permission on those two dll's for the internet guest user


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

Reply With Quote
  #23  
Old May 9th, 2008, 08:17 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,185 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 12 h 15 m 45 sec
Reputation Power: 1209
Try changing
Code:
output.close

to
Code:
output.FDFClose

Reply With Quote
  #24  
Old May 9th, 2008, 08:30 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
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

Reply With Quote
  #25  
Old May 9th, 2008, 08:32 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
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

Reply With Quote
  #26  
Old May 9th, 2008, 08:52 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,185 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 12 h 15 m 45 sec
Reputation Power: 1209
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?

Reply With Quote
  #27  
Old May 9th, 2008, 08:59 AM
jesushax jesushax is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2007
Posts: 640 jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level)jesushax User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 30 m 32 sec
Reputation Power: 17
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!!!

Reply With Quote