I have built a very simple windows form application using C#. But I am stuck here and could not find any help anywhere.
What my simple application does is that it queries out the information in the groupbox which has textboxes labels and buttons. I would like to export or convert the data from in the groupbox into the pdf.
Is there a way to implement that??
Thank you so much in advance~
You may want to have a look at http://www.pdfsharp.com/PDFsharp/. It's a pretty good framework for what you need.
Good luck
There are so many options, following SO Link provides the solution and it is working it seems
convert windows form to pdf file
Other Solution
Use following code to take screenshot
http://www.developerfusion.com/code/4630/capture-a-screen-shot/
Use PDFSharp to save as PDF
there's really a ton of different solutions for this, but you will almost absolutely need a 3rd party library for what you're trying to do. Google around for a pdf library for c#, as there are several.
EDIT: some possible solutions may be PDFjet, PDFsharp,ABCPDF (do note, if this is part of a commercial application, make sure that the licensing allows use for it)
Related
does anyone know of a tool that permits rtf/doc/docx conversion to pdf from C# ?
These documents contain all sorts of fonts (TrueType or OpenType), and I am looking for a tool that will not rasterize the OpenTypes ones and render them rather accurately.
Many thanks in advance for any pointers !
have a look at Aspose.Words
It works server side and does not require Office Automation.
I've used it in a commercial project and it works really good. But it's a commercial component, so you need to pay for a license (which is not that cheap)
EDIT
please have a look at this thread in the Aspose forum
I've used iTextSharp myself in a C# project recently, and it worked pretty well.
Unfortunately, I'm not able to give you any example, as that would make a huge post (and the code is pretty confidential) :)
But here's the link to their site, if that helps:
http://itextpdf.com/
Hope this fits your needs!
I started working in a new project with a big challenge. I am working in a medical project and in that I have to read DICOM images and process the image with its properties. I gathered some basic knowledge on DICOM and PACS. As I worked on WPF around 2 years of my career so I choose to do this project using C# and WPF. I googled a lot and even I went through many articles in SO and also in codeproject, every where I found they used some libraries/ third party tools like:
gdcm , LEADTOOLS , ClearCanvas
Can any body suggest me any alternate way of doing DICOM Image processing without using any third party/library or is it impossible without using libraries/third party ?
I have gone through the link for choose a best suitable library for DICOM image processing, but looking for an alternate way to solving this.Please feel free to suggest which is the best and more flexible library from the above list only if there is not any alternate way to achieve the task.
Any idea, link, suggestion or any initiation will be appreciated, thanks in advance.
In one way or another the third-party libraries are also created from scratch, so of course it is possible to create a DICOM image processing solution without relying on any third-party libraries. Using whole or parts of an open-source library will most certainly take you to a functional solution in considerably shorter time, though.
One third-party library that is mentioned in the link you are referring to is mdcm. This is a relatively light-weight open-source library with support for WPF (and Silverlight). If you want to, I am pretty sure you should be able to extract those parts from this library that are relevant to your project.
Another light-weight library is Evil DICOM. I am not completely sure that this library has very much image processing functionality, though.
UPDATE MAY 31: SUMMARY OF DISCUSSION
mdcm is an open-source library under the LGPL license. An example of image rendering usage is given in the SL.DicomToXml (Silverlight) application, equally applicable to WPF applications. In the code-behind of the MainPage, fileNameButton_Click method, there is code to demonstrate DICOM image file loading and rendering.
There is currently no up-to-date binary distribution of mdcm available, but it should be fairly easy to build required libraries from the solution in the mdcm repository. Source code can either be obtained using a Git client or by downloading the latest revision by clicking on the ZIP button on the repository home page.
If you need to get more acquainted with DICOM image processing details, it is probably good to start by having a look at the DICOM Standard itself, and also to parse a DICOM image file to get the feeling for what information it contains. A good starting point is the official DICOM homepage. A quick introduction with links to software is given here. There is also a general, more lengthy tutorial available here.
I'm trying to find a C# library that will allow me to "Print" one of my HTML pages to a PDF file. I can't seem to find out if one currently exists that will allow you to do this. I've found several that will let you build a page, but haven't noticed if one would generate the pdf only based off of HTML.
EDIT: I'm not allowed a budget on this at work so it will need to be an open source/free product. If not I'm aware of iTextSharp and will have to generate the pdf programmatically (which is what I'm hoping to avoid :) )
I've had a lot of luck with ActivePDF WebGrabber. It's kind of odd to use compared to standard managed libraries (ActivePDF is unmanaged), but it gets the job done.
iTextSharp comes with a little companion : XML Worker
For a demo, have a look here
Even though the documentation refers to the Java API, the adaptation to C# should be straightforward.
I've experimented with itextsharp and it works for basic conversion, but gets complicated when you get into styles and formatting. I've also heard wkhtmltopdf is out there as another option.
I am working on a program to get proxylists from the web to a datagridview and then add an option to export the data to csv.
I am really a noob and want to know the way of doing so without connecting to a SQL DB. I just want it to get the data (done this already), show it in columns locally and export to csv as an option.
I heard it can be done somehow with LINQ.
Can I see an example? I just can't seem to find anything out on the web..
Also exporting to csv would help..
Thanks!
Check this library out, worked like a charm for me. Has some examples on there for you.
http://www.codeproject.com/Articles/25133/LINQ-to-CSV-library
One of my first projects as a programmer was something along these lines, so GOOD LUCK!
At work we use the FileHelpers open source library for CSV manipulation. It is super easy to use and extremely quick to develop against with a small learning curve (which is really important when using 3rd party libraries).
We are developing a C# Application that supports printing multiple views and we would like to add printing to PDF. This application has several 3rd party controls that handle the printing on their own so adding something like SharpPDf will not work for us we don't believe.
Either we need a 3rd party component that takes a Print document as source and produces a PDF from that, or we need a good 3rd party print driver.
I was surprised that Adobe does not offer a Distributable version of the PDF printer they bundle with Acrobat as that would be ideal. Anyone have recommendations as to what is the best path for us on this?
Thanks in Advance,
Jeff
UPDATE: So after all the suggestions and a ton of research here is what I ended up doing. We are buying a license to Novapdf sdk for our product (http://www.novapdf.com/en/pdf-sdk.html). I looked at over 15 different products and we went with nova because of the ease of which we could implement this in our code and the cost was right ($899 for novaPDF SDK Single Application v7.) The code could not have been simpler and you can start developing before you actually have the license. Thanks again to everyone for their suggestions.
as a PDF printer, you can use PDF Creator, that it's free:
http://www.pdfcreator.com/
However, i'm using SharpPDF and works fine.
The best free tool I found is ITextSharp. It's very easy to use, and has a lot of examples online.
You can find it information at http://itextsharp.com/
we are using Billzip http://www.bullzip.com/products/pdf/info.php. There is also a COM interface to define how you want the output file handled. Here is the COM object info http://www.biopdf.com/guide/.