生成 PDF 文档的 C# 组件 Report.NET
fmms
13年前
<p>Report.NET 是一个功能强大且易用的用来生成 PDF 文档的 C# 组件。<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:x-small;"><br /> - entirely written in C# for the Microsoft .NET framework<br /> - very compact code (Hello World: 6 lines)<br /> - supported graphic objects: text, lines, rectangles, jpeg images<br /> - easy alignment and transformation of graphic objects<br /> - ASP.NET can generate dynamic PDF pages<br /> - XML Documentation (Comment Web Pages)</span></p> <p>示例代码:</p> <pre class="brush:c#; toolbar: true; auto-links: false;">using Root.Reports; using System; namespace ReportSamples { /// <summary>Hello World (PDF Version)</summary> class HelloWorld { //----------------------------------------------------------------------------------------------------x /// <summary>Starts the "Hello World" sample.</summary> public static void Main() { Report report = new Report(new PdfFormatter()); FontDef fd = new FontDef(report, "Helvetica"); FontProp fp = new FontPropMM(fd, 25); Page page = new Page(report); page.AddCenteredMM(80, new RepString(fp, "Hello World!")); RT.ViewPDF(report, "HelloWorld.pdf"); } } }</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326792402202" target="_blank">http://www.open-open.com/lib/view/home/1326792402202</a></p> <p></p>