Introduced
PDF generation Required Class Library Itextsharp.dll, is an open source in C # for the production of PDF documents in the library file, many C # enthusiasts used it to create a PDF document Builder
Code
The code is as follows
Copy Code
void Convertjpg2pdf (String jpgfile, string pdf){var document = new Document (ITextSharp.text.PageSize.A4, 25, 25, 25, 25);using (var stream = new FileStream (PDF, FileMode.Create, FileAccess.Write, Fileshare.none)){Pdfwri
Best. NET open-source free ZIP library DotNetZip (. NET Component Introduction 3): http://www.cnblogs.com/pengze0902/p/6124659.html
Free Open Source DotNet QR code operation components ThoughtWorks. QRCode (. NET Component Introduction 4): http://www.cnblogs.com/pengze0902/p/6134506.html
Free Open-source DotNet Job Scheduling component Quartz. NET (. NET Component Introduction 5): http://www.cnblogs.com/pengze0902/p/6128558.html
Free and efficient. NET Excel operating component NPOI (. NET Comp
generator on the. NET platform. It supports almost all text processing functions. You only need to add paragraphs, tables, or charts to the section, and use bookmarks to create links, table content, indexes, and so on. MigraDoc automatically performs paging and layout to generate PDF, XPS, and RTF document formats. In general, it is a simpler type of generic document generation tool. Its official website and PDFsharp are both in progress and are currently being updated.
Http://www.pdfsharp.net/
, embed fonts, and so on. The overall support is comprehensive, but not personally tested.Official website: http://www.pdfsharp.net/10.MigraDoc Document GeneratorMigradoc is a. NET platform open source document generator that almost supports all word processing features. You only need to add paragraphs, tables, or charts to the section, use bookmarks to create links, table contents, indexes, and so on. Migradoc automatically pagination and layout to generate Pdf,xps and RTF document formats. Ove
C # export HTML to the PDF component Pechkin,
C # exporting PDF is a feature that is frequently encountered during development. We use third-party components, such as iTextSharp and aspose. We can also find some open-source class libraries,
However, for PDF with complex content and rich styles, we hope to generate a PDF directly by inputting a URL, and it cannot be too different from the original webpage version. Pechkin is good, but the difference is
In the end, we still need to use NPOi. At the beginning, I used the com component. I found that my computer would not be able to use it if it was not excel-based. Later I changed one of them to use Itextsharp to generate pdf files, but there were several batches of Excel files to be produced, you can only use NPOI. However, this is also a learning method.
1. Let's talk about how I feel about using Com and NPOi components.
NPOI does not need to be ins
-develop/pbk23198.html
Related content C # using MCI to create a video or sound player source code download C # Implementation of SQL backup and restore functionality example C # Implementation of Baidu ping push function C # method of exporting data to Excel using OLE DBC # calling DOS Windows to get related information C # converts a picture and a byte stream to each other and displays it on the page C # uses the Itextsharp encapsulated PDF
created, find the report viewer control in the toolbar and drag it to the form, then you can set the corresponding attributes just like Asp.net.
Set the corresponding attributes for report viewer, as in Asp.net.
Run the project and you can see the effect of SSRs in winform.
In addition, the method for passing parameters to a report in winform is the same as that in Asp.net, and is not described here.
Now, using SSRs reports in applications is a simple introduction. You ca
/NimbusRomNo9L-Regu... 3770200 2395423 2776248 1391721 3 done.
Text loss still occurs when Xuan changes the document
Later I switched to version 8.71 and then tested it:
Modify: lib/cidfmap:
Append the content below the % substitutions section (the following content is only for document settings that cannot be converted normally during the test. After modification, the document is converted successfully ):
/Microsoftyahei /Lucidasansunicode
Running result:
Loading a TT font from C:/Windows/font
After finishing C # winform Development Series-Report favorites, I originally intended to reply directly to my original [Share] C # winform Development Series article post, however, it seems that everyone has no habit of reading the reply, and they have no permission to modify the post. This time, I have to ask a Thai Moderator to help me complete the link, in fact, there is a real-time update link in my blog article. Click to read the original article.
Collect some information in winform, Asp.
Recently, a project needs to convert files (such as Word, Excel, txt, and image) to PDF files. After searching the documents, there are many implementation methods, such as calling a virtual printer for conversion,Use third-party components (such as itextsharp and sharppdf. Now both are used. When HTML is converted to a PDF file, I first intercept HTML as an image and then convert itPdf. If you have good suggestions, you can discuss them together.What
Recently, a project needs to convert files (such as Word, Excel, txt, and image) to PDF files. After searching the documents, there are many implementation methods, such as calling a virtual printer for conversion, use third-party components (such as itextsharp and sharppdf. Now both of them are used. When HTML is converted to a PDF file, I cut the HTML into an image and convert it to a PDF file. If you have good suggestions, you can discuss it togeth
loaded Adobe PDF Reader control to the winform interface.
3. Enter the following code on the loading interface:
String filename = "C :\\ documents ents and settings \\ auyeungck \ My Documents ents \ myfile \ aa1.pdf ";This. axacroapps1.loadfile (filename );
Axacro).1setshowtoolbar (false );
Axacroupload 1.loadfile (filename );Ax1_1_1.printall ();
In addition, you can also create the following code by yourself:
Axacropdflib. axacropdf 1 = new axacropdflib. axacropdf ();Axacroroute 1.location =
Example
I have found a solution and have no time to upload it to share with you,
Itextsharp is used.
/// /// Merge PDF files/// /// /// Private bool mergepdf (list {Bool breturn = false;Try{Int F = 1;Pdfreader reader = new pdfreader (lstfiles [f]);Int n = reader. numberofpages;Document document = new document (reader. getpagesizewithrotation (1 ));Using writer = Using writer. getinstance (document, new filestream (lstfiles [0], filemode. Create ));D
wrote one myself, which is not very well written and may have some problems.2. This tool does not provide good support for multithreading when transferring to the selected directory structure and analytical computing, which is related to its own weak capabilities in this aspect.
If you have time and the tool does work, I will try to improve it.Note: The PDF generation function of this tool depends on the ITextSharp open source component.
Next,
I recently searched the internet and found the control for displaying PDF files. The only one that I successfully tested was to use ActiveX functions such as Adobe Reader's acro *. dll or PDF. ocx.
However, there is a major limitation in using this, that is, the user must install Adobe Reader on the local machine. I also used this control and found that it will be attached with a lot of PDF buttons, which will undoubtedly increase the burden on the Interface display, so that we cannot display P
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.