Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

ASP to PDF Files


  • Please log in to reply

#1
freik

freik

    Member

  • Member
  • PipPip
  • 21 posts
Hi all,
I'm having troubles with this issue. What I'm shooting for is to send the name and address of a company to a PDF so that when a customer clicks to download it will show the company information. The name of the company is pulled from a database and will change depending on which customer has clicked on it. I am building this site in ASP. Can it be done?

Any help with this is greatly appreciated.
  • 0

Advertisements


#2
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
Hello freik,

Your options are limited in accomplishing this task. If you are hosting the website on your own server or have access to the hosting server, you can print the PDF from the command line of the server. You would need to use a combination of the following:
PDFCreator (free), Adobe Acrobat (not free), or a similar utility that can print PDF files from the command line.
Scripting.FileSystemObject
WScript.Shell
Server.MapPath

You'll need to have a template document set up on the server that you can open up and replace values to, then save it to another file. You may or may not need to use Server.MapPath. Once the file is written with values, you'll have to pass a command to the WScript.Shell object to print the file to a PDF. After that, it's a matter of getting the document displayed to the user.

Regards,

Ax
  • 0

#3
freik

freik

    Member

  • Topic Starter
  • Member
  • PipPip
  • 21 posts
Hey Ax,
Thanks for the speedy reply again. I decided to ask the folks who host our site about the things you have mentioned as it would have taken me a while to do all the research behind it. It turns out that this functionality already exists on another site that they are hosting. They told me that in order for them to do this they were using ABCpdf3, a custom dll from a third-party. I decided to research that and I think I got it working now.

Many thanks for your thoughts on this topic though.

Edited by freik, 21 May 2008 - 03:52 PM.

  • 0

#4
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
Glad to hear you were able to come up with a resolution, thanks for posting back.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP