水晶報表(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