Avatar of ngobw
ngobw asked on

Convert ASPX web page to PDF

I have an application that read user inputs and generate quotation outputs on to the user. Now, my clients want the pages (which are output in aspx pages) to be displayed as PDF so that they can save the quotations. I've heard of Crystal Reporting tool in Visual Studio 2005, how do I use it? My data is grabbed from a business logic layer.

Alternatively, is there any third party pdf conversion tool (for ASP.NET) that is good and easy to use out there?
.NET ProgrammingC#ASP.NET

Avatar of undefined
Last Comment
Anurag Thakur

8/22/2022 - Mon
Anurag Thakur

the tools described in the following link might help you in your problem
http://www.codeproject.com/KB/showcase/TallComponents.aspx 

also if you want to use the free report viewer tool (just like crystal reports) in .net then that is also an option where you can generate your reports and it has a built in option to export your results either in excel or pdf whatever you choose
ASKER
ngobw

Hi raqi0017, thanks for the prompt feedback.

I did a search on google and I always seem to stumble upon winnovative solutions and they seem to be able to provide what i need as well. I would just like to know how does winnovative stand against pdftall components. Winnovative seemed abit shady and im not quite sure of its legitimacy of the software. just my opinion, do advise me. Thank You.
Mike McCracken

Crystal will require a large learning curve and the building of the reports in addition to developing code to save the reports as PDF files.

Is the data in a database?

Do you use a reporting tool or simply asp pages?

mlmcc
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER
ngobw

Yes the data is in a database.

Currently, I've already generate a ASP version of the quotation (ie a HTML output of the quotation).

I guess if Crystal learning curve is pretty big, I would rather have some sort of HTML to PDF converter since I already got the ASP pages done.

Any comments on winnovative and tallPDF? which one is better? or is there a better one out there.
raaziq

u can create the report in SQL Server Reporting Service and
try this, it will prompt the data to save/open as pdf

                HttpResponse response = HttpContext.Current.Response;
                response.Clear();
                response.ClearContent();
                response.ClearHeaders();
                response.Buffer = true;

                string strFile = "Filename.pdf";
                //Keep the current page as it is, and writes the content to an new instance,
                //which prompts the user to download the file
                response.AddHeader("Content-Disposition", "attachment;filename=\"" + strFile + "\"");
                response.BinaryWrite(data);
                response.End();
raaziq

the "data" will be a byte[] which is generated by the render() method of RS.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Anurag Thakur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question