Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing an ASP page created dynamically

Status
Not open for further replies.

SuperCyber

Programmer
Aug 10, 2001
35
US
I will do my best not to make this confusing, I hope.

I have an order page that passes values to another ASP page to reconstruct the values passed into html format for emailing. Before I create the email format I make calls out to SQL stored procedures which imports and exports data from my database. I am using ASPEmail to create the email so all the code is writen in ASP format. – (no problem with this, works and emails perfect.)

Next I take the html code (which is in a string at this point) and add a JavaScript for printing and then redirection (which also was put into a string) and have tried one of two things:

First I tried to do a Response.Write with the html string and the JavaScript string to the same page. – This worked to redisplay the page properly with the new html code and executed the JavaScript print command properly but when I printed the page out I got a print-out of “The page cannot be displayed” due to the page trying to resubmit a stored procedure before printing the html code.

So if there is an easy way to fix that I would love to know how.

Second I created an ASP file with the order number and then place it on a different hard drive. I also created a virtual directory to the files on my webserver. – (no problems with that)

BUT FOR THE LOVE OF MEGABYTES I CANT FIGURE OUT HOW TO "DISPLAY" A FILE FROM THAT DIRECTORY. ok, I feel better now.

I have tried Server.MapPath, Response.Redirect, voodoo, osmoses, you name it I’ve tried it. At this point any help is appreciated.

Thanks,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top