水晶报表(c#.net)中是否有任何工具可将字体更改为某种其他语言?如果不是,如何将水晶报告转换为pdf格式?将水晶报表转换为PDF
-1
A
回答
0
foreach (ReportObject objReport in rpt.ReportDefinition.Sections["Section3"].ReportObjects)
{
FieldObject objField = (FieldObject)objReport;
objField.ApplyFont(new Font("Arial", 8.25F, FontStyle.Italic, GraphicsUnit.Point, ((byte)(0))));
}
对于PDF,请参阅以下内容:
1
protected void Page_Load(object sender, EventArgs e)
{
ExportOptions objExOpt;
CrystalReportViewer1.ReportSource = (object)getReportDocument();
CrystalReportViewer1.DataBind();
// Get the report document
ReportDocument repDoc = getReportDocument();
repDoc.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
repDoc.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
DiskFileDestinationOptions objDiskOpt = new DiskFileDestinationOptions();
objDiskOpt.DiskFileName = @"c:\crystal report\TFA.pdf";
repDoc.ExportOptions.DestinationOptions = objDiskOpt;
repDoc.Export();
}
private ReportDocument getReportDocument()
{
// File Path for Crystal Report
string repFilePath = Server.MapPath("~/CrystalReport1.rpt");
// Declare a new Crystal Report Document object
// and the report file into the report document
ReportDocument repDoc = new ReportDocument();
repDoc.Load(repFilePath);
// Set the datasource by getting the dataset from business
// layer and
// In our case business layer is getCustomerData function
return repDoc;
}
0
ReportDocument reportobj = //Add code to return valid report document from a crystal report
if (reportobj != null)
{
//Export to PDF
((ReportDocument)reportobj).ExportToDisk(ExportFormatType.PortableDocFormat, file);
//Open using default app for PDF docs
if (System.IO.File.Exists(file))
System.Diagnostics.Process.Start(file);
}
-2
水晶报表转换为PDF格式,您可以尝试PDF库,将打印水晶报告给pdf文件。
相关问题
- 1. 将水晶报告转换为pdf格式
- 2. 将表格文本转换为水晶报表
- 3. 水晶报表日期时间转换
- 4. 在asp.net中打印水晶报告而不转换为pdf
- 5. 水晶报表函数用于将Seconds转换为Timespan格式
- 6. 将日期转换为数字的水晶报表
- 7. 将桌面应用程序的水晶报表转换为Web应用程序的水晶报表
- 8. 导出报表时出现ASP.NET错误(水晶报表为PDF)
- 9. 将水晶报告导出到pdf
- 10. 水晶报表
- 11. 如何使用oracle将水晶报表导出为pdf
- 12. 将水晶报表导出为PDF导致数据丢失
- 13. 水晶报表子报表
- 14. 在pdf文件转换水晶报告书
- 15. 将Varchar转换为水晶报告中的小数点
- 16. 水晶报告价值转换?
- 17. 转换数为单词在水晶报表
- 18. 水晶报表总
- 19. 水晶报表SQL
- 20. VB +水晶报表
- 21. DotNetNuke水晶报表
- 22. 水晶报表11.0
- 23. 如何将水晶报告转换为.pdf而无需替换以前的.pdf文件?
- 24. 水晶报表 - 从一个报表创建多个PDF
- 25. 2011水晶报表VS水晶报表的Visual Studio 2010
- 26. 水晶报表不显示在水晶报表查看器WPF
- 27. 如何在asp中保存转换为pdf格式的水晶报告
- 28. 水晶报表替换功能
- 29. 如何将pdf文件动态嵌入水晶报表?
- 30. 将整数中的总时间转换为水晶报表中的HH:MM格式
谢谢brij ... il试试这个 – 2011-04-02 07:48:49