简体   繁体   English

如何在不使用gridview的情况下将报告转换为pdf(Visual Studio)

[英]How can I convert my report into pdf without using a gridview (Visual Studio)

I was able to convert gridviews into pdfs but now I want to generate a pdf for my pay slip. 我能够将gridviews转换为pdf,但是现在我想为工资单生成一个pdf。

It has a different format because I fixed the layout using an HTML table, and ASP Labels. 它具有不同的格式,因为我使用HTML表和ASP标签固定了布局。

How can I convert that into PDF? 如何将其转换为PDF?

If you don't have a built tool for converting to PDF (like teleriks builtin methods for exporting RadGrids to PDF) I'd go for generating the PDF by hand. 如果您没有用于转换为PDF的内置工具(例如用于将RadGrids导出为PDF的teleriks内置方法),我将手工生成PDF。

Instead of trying to parse the UI into a PDF you can construct the PDF directly from the data source. 无需尝试将UI解析为PDF,您可以直接从数据源构造PDF。 I've used iTextSharp for composing PDF:s manually. 我使用iTextSharp手动编写PDF:s。 It's a bit clunky but it get the job done. 这有点笨拙,但可以完成工作。 Beware of the license for iTextSharp version > 5 if you have a commercial site. 如果您有商业站点,请当心iTextSharp版本> 5的许可证。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不使用Visual Studio的情况下添加COM引用? - How can I add a COM reference without using Visual Studio? 如何在不替换以前的.pdf文件的情况下将Crystal报表转换为.pdf? - How to convert crystal report to .pdf without replace the previous .pdf file? 如何在没有明确编译的情况下让Visual Studio错误检查我的代码(显示波形)? - How can I get Visual Studio to error check my code (show the squiggles) without explicitly compiling? C#Visual Studio:如何在不激活其他字段验证器的情况下更新GridView? - C# Visual Studio: How do I update GridView without activating validators for other fields? 使用Visual Studio 2013设计报表的报表设计器-如何开始? - design report using visual studio 2013 report designer - how to begin? Visual Studio如何知道Project是VB项目或如何将项目转换为C#项目 - How does Visual Studio know Project is a VB project or How can I convert my project to C# project 如何在没有表单的情况下使用 Visual Studio 设计器 - How can I use Visual Studio designer without form 如何使用Visual Studio 2012 Professional管理我的项目版本 - How can I manage my projects versions using Visual Studio 2012 Professional 如何使用Unity 2017.3.1f1和Visual Studio 2017更新脚本? - How can I get my scripts to update using Unity 2017.3.1f1 and Visual Studio 2017? 使用Visual Studio调试时如何编辑代码? - How can I edit my code while debugging using Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM