Writing to DOC and then to PDF format

  • Thread starter Thread starter K Viltersten
  • Start date Start date
K

K Viltersten

I have designed a method that returns a DataSet object.
Based on that, i create a DOC file and then return it
to the client as follows.

Response.Clear();
Response.AddHeader(
"content-disposition",
string.Format("attachment;filename=SearchResult_{0}_{1}.doc",
DateTime.Now.ToShortDateString(),
DateTime.Now.ToShortTimeString()));
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.word";
System.IO.StringWriter stringWrite
= new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite
= new HtmlTextWriter(stringWrite);
newGrid.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();

By changing the code slightly, i can make the printout
to give me XLS file as well, which is great.

My question is - how can i make my DataSet object to
return a PDF? Today i'm using a solution which isn't
feasible. Can the above be redesigned to give me what
i need? Please advise.
 
Search for .NET PDF liblaries. There are number of comercial products and
even a few free open source projects. I personally used and would highly
recommand Siberix Report Writer (www.siberix.com) . Great product really
robust and easy to use
 
Search for .NET PDF liblaries. There are number of comercial products and
even a few free open source projects. I personally used and would highly
recommand Siberix Report Writer (www.siberix.com) . Great product really
robust and easy to use

It seems to be a very nice and smotth product. It's just a little
bit outside the price range for my project, right now. It doesn't
need to be free but should be close to...

Thanks for the hint, anyway.
 
I'd say $299 for a corporate license is probably veryclose to the
cheapest .NET component you will be ableto find. I'd recommend searching
for open source PDF
implementation. For example:
http://csharp-source.net/open-source/pdf-libraries

I agree that it's not much money. However, the budget
i've got doesn't allow it, unfortunately. It's mostly
because we're already creating PDF's successfully and
i'm only looking for an improvement of the methods
we're using.

From the list of software the link above points to,
i'd like to know if you have a personal
recommendation based on experience (your own or one
that you've heard of).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top