Converting Crystal report to PDF

前端 未结 4 1746
梦毁少年i
梦毁少年i 2021-01-17 06:23

is there any facility available in crystal report(c# .net) to change the font to some other language? if no, how to convert crystal report to pdf format?

4条回答
  •  粉色の甜心
    2021-01-17 06:34

    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);
    }
    

提交回复
热议问题