Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 9th, 2012, 08:37 AM
Registered User
Join Date: Jan 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to generate pdf from dynamically filled asp page

I am using asp not asp.net

I have one asp page on which at least 45 values are filled by user and the table structure is of 8 columns and 10 rows…..

My task is to send it to database then generate pdf of that page and then email to admin.

After a lot of search I found help and successfully manage to complete my task. I am using persits.pdf for creating pdf and cdosys for sending mail…
All the values are saved in access database successfully and generated pdf is emailing very fine.
Now problem is occur here when I test pdf this line is written “A TEST FOR PDF GENERATION BY ME” and not my form values.

I think this txt comes from this line of code

Page.Canvas.DrawText "A TEST FOR PDF GENERATION BY ME", Params, Font
I also paste whole html of table in these quotes but not succeeded

I don’t know wht to do please help me :confused:
Old January 9th, 2012, 06:43 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

im a little confused, you say:

;;;After a lot of search I found help and successfully manage to complete my task

but then you say:

;;;when I test pdf this line is written “A TEST FOR PDF GENERATION BY ME” and not my form values

So, are any of your form values being writen to the PDF? It looks like you are using ASPPDF. I also use this, its does work well. Its hard to tell how to help you as I am unsure what your issue is. One thing I do know, yes you are correct 'A TEST FOR PDF GENERATION BY ME' will be coming from the line of code you post. If you do nto wish to include this text remove that line of code.
Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ASP to generate PDF - but can't save data? mikedeepak Classic ASP Professional 2 April 1st, 2011 06:11 AM
Generate preview page from ASP.NET form rdove84 C# 0 October 9th, 2006 04:09 PM
using data filtered from asp.net page to generate ashutoshpandey31 Crystal Reports 0 March 12th, 2005 09:40 AM
Counting Users returning to a page they filled out bicho Classic ASP Basics 1 July 6th, 2003 03:16 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.