session variables and pdf document (Full Version)

All Forums >> [Product Help] >> Spooky Login Product Support



Message


winter -> session variables and pdf document (3/21/2008 12:19:17)

Hi there,

Using Spooky Login and FP2003, I collect data by UserID online and post back on line for users a report done in WORD and converted to a PDF. They have to login to get the report.

I am wondering if it is possible to customize the report with the data from the user only when they login? Tried putting a session variable in a WORD document and converted it to PDF... but of course that doesn't work.

Could you please point me in the right direction?[8|]

Thanks so much!

Carolyn




Spooky -> RE: session variables and pdf document (3/21/2008 15:39:31)

Just to clarify - When the user views the report, they view an online html version? You then want to take this online version and make it available as a word/pdf download?




winter -> RE: session variables and pdf document (3/21/2008 23:39:01)

I have never thought of that before! Usually the report is written in WORD first then converted to PDF and uploaded to a password protected page. But I could write it up as a web page (or a Word document saved as an html page).

How would i then have that turn be made available as a PDF download... or something that prints like a normal 8/5x11" page?

You are amazing!

Thank you in advance!

Carolyn




Spooky -> RE: session variables and pdf document (3/22/2008 0:23:36)

It can be done - but depend what you have already! :)

Im not sure which version login you have, but in the Dev version, you can download the users from the user page as a .csv file (for use in Excel)
The same logic can be applied to any data - it can be outputted as a .pdf file using the same logic.

Im not an expert at that, so I dont know how to format outputs (other than straight text), but Roger may have an idea? or google [;)]

A code example is :
	Set objRS = objConn.Execute (sSQL)
	response.ContentType = "application/pdf"
	response.Charset = "UTF-8"
	response.AddHeader "content-disposition","attachment; filename="&appname&"data.pdf"
	Response.write objRS(...data...)
	Call CloseRs()
	Call CloseConn()
	response.end
	response.clear






winter -> RE: session variables and pdf document (3/29/2008 18:09:55)

Hi Spooky,

Well, i am going to keep this suggestion, because, as my grey cells expand, I may one day read this and have a new take on this or understand it!

But your previous question (was just so brillant) led to I think a simpler solution, which i would like to share in case there are others who need this.

This is to customize a report to users with data they have submitted to the system. Their UserID is included in the form fields.

I do my session notes (or report) in WORD, leave a highlights for where the session variable need to be inserted later.

Paste my session notes into a table on a new webpage and save as the report title. I then add the session variable for the various sections that will customize the report to the reader. Only readers with a login can read the report which is now customized to them with the data they submitted in the first place. The data by the way is collected using UserID in a hidden field.

When 50 people or more are submitting information that goes to a common report, this customized method really cuts down the pages, and gives each person their customized slice of the hologram!

I may have just lucked out but the page prints just fine too!


Carolyn





OscarSierra -> RE: session variables and pdf document (4/3/2008 9:30:49)

Why not use the upload function in the Spooky Login application ? admin can upload and give access to users...

Is that to simple ?[:)]

- Oystein




OscarSierra -> RE: session variables and pdf document (5/2/2008 9:26:26)

I have tried your solution Spooky, it wasn't that simple..... [:(] after a lot og google I found a C# solution (that is free) here http://www.codeproject.com/kb/cs/pdfizer.aspx

But the is a lot of payware out there at small $

I have not tried it yet, if someone do an get the wanted result I would like to know

- Oystein




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0703125