PDF Export from HTMLViewer

Posted by: abcefg77789 on 20 December 2017, 9:44 pm EST

  • Posted 20 December 2017, 9:44 pm EST

    In same rpx file, when export pdf from HTMLViewer and FlashViewer is different font.

    How to do to same font in both viewer.

    Sorry for my poor english

  • Posted 21 December 2017, 4:01 am EST

    My Web Application is on Microsoft Azure Cloud environment.

    Local environment is OK for both viewer.

    Attach file for above problem.

    Flash Viewer [Downloaded File]

    HTML Viewer[Downloaded File]

  • Posted 21 December 2017, 5:39 am EST

    Hi,

    Could you please explain the method you’re using for exporting the report to Pdf? When exporting a report using the PdfExport export filter, it doesn’t matter which type of viewer you use, the font will remain the same. I have attached two pdf files and the font is the same in both the files. Please take a look.

    ReportExports.zip

    Thanks

  • Posted 25 December 2017, 12:38 am EST

    Hi,

    I use the following code for pdf export in html viewer.

    $(“#ExportSelect”).change(function (e, args) {

    var valueSelected = this.value;

    if (viewModel.PageLoaded()) {

    switch (valueSelected) {

    case “PDF”:

    viewModel.Export(ExportType.Pdf, function (uri) {

    window.location = uri;

    }, true);

    break;

    case “Excel”:

    viewModel.Export(ExportType.Xls, function (uri) {

    window.location = uri;

    }, true);

    break;

    }

    }

    });

    And the following code is load data from sql to rpx file.

    SectionReport rpt = new SectionReport();

    System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(Server.MapPath(“~”) + @"\RpxReports" + rptName);

    rpt.LoadLayout(xtr);

    xtr.Close();

    DataSet rptDS = m_prepareRpt.LoadReportDS(rptName, rptParmas, m_dbCon);

    WebViewer1.Report = rpt.Document;

    rpt.DataSource = rptDS;

    rpt.DataMember = “Table”;

    checkViewerType();

    rpt.Run();

    I found the difference between document properties of pdf files.

    Please check the image file.

    Advice me what should I do.

    I use the trial version of active report.

  • Posted 25 December 2017, 1:23 am EST

    I copy the text from pdf to text editor.

    The new problem is FlashViewer’s pdf doesn’t show the Japanese font correctly but shows correctly in HtmlViewer’s pdf.

    HTMLViewer: OS タイコ ※ 鍋頭 M8×45、SW

    FlashViewer : OS 􀍷􀍜􀍫 􀉈 􄥻􄹝 M8×45􀋣SW

  • Posted 25 December 2017, 3:44 am EST

    Another problem is vertical alignment problem.

    I set the bottom alignment in rpx.

    But HTMLViewer shows middle alignment and FlashViewer show correctly.

    Please check the pdf image file.

  • Posted 26 December 2017, 4:34 am EST

    Thanks for the screen shots. Could you explain how are you exporting to pdf from the Flash Viewer? Are you printing to Pdf?

  • Posted 26 December 2017, 8:24 pm EST

    Hi,

    Yes, I do print to pdf.

    Thanks for any help you can provide.

  • Posted 27 December 2017, 5:33 am EST

    The Save as Pdf is a feature of the browser and ActiveReports does not have control over the Print functionality of the browser. I would recommend exporting to Pdf using the Pdf ExportFilter of ActiveReports. More information about this can be found at the following documentation link - http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#CustomWebExporting.html

    Hope it clarifies.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels