If you became a customer of the Syncfusion� Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion� Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion�.

For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.

Thank you for choosing Syncfusion� for your reporting needs.

Bold Report - Report Viewer - Exporting doesn't maintain same font

When exporting from the .rdl the PDF comes with the same font as the one configured, in my case: 'Segoe UI'.

But when exporting using the APIs Report Viewer, it changes throught the report to a complete different one.

How can I force it to maintain the Segoe UI font I selected when exporting?


11 Replies

MR Manoranjan Rajendran Syncfusion Team October 29, 2021 12:50 PM UTC

Hi Martin Perez Paladino, 
 
Thanks for contacting Bold Reports support, 
 
We have validated the your requirement. If you want to export the report with Segoe UI fonts alone. Could you please open your report in notepad and ensure whether below code was added if not please add it. We have attached sample report also for this. 
<df:DefaultFontFamily>Segoe UI</df:DefaultFontFamily> 
 
 
In your Report viewer controller please load the Segoe UI fonts as like mentioned in below documentation to resolve your fonts issue.
https://help.boldreports.com/embedded-reporting/aspnet-core-reporting/report-viewer/export-report/#add-custom-fonts-to-pdf-document 
 
If still you are facing issue. Could you please share any issue reproducible sample with us. Its helpful for our further validation. 

Regards,  
Manoranjan R  



MP Martin Perez Paladino October 29, 2021 07:31 PM UTC

Hi,


Thanks for the response. I managed to resolve it with that.

Now I'm seeing that the text that are supposed to be bold are not showing as bold when exporting. Is there a way to fix that?

Also, on another subject: how can I show the page number in each pdf page when exporting?


Regards,

Martin



MR Manoranjan Rajendran Syncfusion Team October 30, 2021 11:39 AM UTC

Hi Martin Perez, 
 
Thanks for the update. 
 
Please find the details from below table, 
 
Queries  
Details  
Now I'm seeing that the text that are supposed to be bold are not showing as bold when exporting. Is there a way to fix that? 
If you want bold letter for exported file. You have to mention Bold in report controller with fonts. Please refer the below document for this, 
 
{ "Roboto Bold", new FileStream(basePath + @"\fonts\roboto\Roboto-Bold.ttf", FileMode.Open, FileAccess.Read) }, 
how can I show the page number in each pdf page when exporting? 
Please use the below expression for getting page number in PDF file.

=Globals!PageNumber
 
 
 
Regards, 
Manoranjan R 



MP Martin Perez Paladino November 1, 2021 02:17 PM UTC

Where should I use the =Globals!PageNumber?

Using it on a TextBox only shows me a 0 at the end of the last page of the report.



MR Manoranjan Rajendran Syncfusion Team November 2, 2021 04:12 AM UTC

Hi Martin, 

You have to add the expression in report footer section. We have attached the sample report for this. Please check this for your requirement.  


Regards, 
Manoranjan R 



MP Martin Perez Paladino November 2, 2021 07:35 PM UTC

Awesome thanks, that worked.

Now I'm encountering a new problem, when modifying the footer, with not only the page number on the left side, but also wanting to have an image on the right side of the report, when exporting it to a PDF (I have a table, and that table kind of divides itself into 4 pages when exporting because it does not fit in only one), the image is not shown, because it seems it's too far to the left, so it goes by the end of the PDF page.

I'm not finding it very intuitive to fix this kind of issues, how can I manage to keep showing the whole table in my API (Report Viewer), with the page number and the image showing, and also keep the same page number and image when exporting to PDF? Seems to have two completely different behaviours.


I'm attaching the report you sent me with this modification so you can clearly see what's going on.

Steps:

- Preview the report (you'll see both the page number to the far left and the image to the far right)

- Touch the "Print Layout" option. Now the image is gone. (this is what's happening to me when exporting to PDF)


Attachment: PageNumber_661ce3a3.rar


MP Martin Perez Paladino November 2, 2021 07:37 PM UTC

Just realized I mistakenly attached an image at the top of the report, ignore that, delete it if you must, the only one that matters is the one in the footer.



MR Manoranjan Rajendran Syncfusion Team November 3, 2021 09:31 AM UTC

Hi Martin, 

Thanks for the update, 

We have tested the reported issue with shared report. We did not find any images in your report. We added one image in footer and tested and its works fine. We did not face any issue. We have attached the modified report. Could you please check and share your issue snap. 


Regards, 
Manoranjan R 



MP Martin Perez Paladino November 4, 2021 02:46 PM UTC

The issue happens when the report width is higher than the print layout width and the image is at the far right of the report.

I'm attaching the modified report, please follow the previously provided steps to reproduce it.


Attachment: PageNumber_699e27a2.rar


MR Manoranjan Rajendran Syncfusion Team November 9, 2021 03:54 AM UTC

Hi Martin, 
  
Thanks for the update. 
  
We will check and update the details for this on 9th November 2021. 
  
Regards, 
Manoranjan R 



MR Manoranjan Rajendran Syncfusion Team November 9, 2021 12:25 PM UTC

Hi Martin, 
 
We have validated your reported issue with provided report. You have set your report page size to your print paper size. If report not fit with that page its render with next page. Please refer the below documentation for this, 
 
Regards, 
Manoranjan R 


Loader.
Up arrow icon