We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Apply Custom Style to Presentation Table

Hello,

is there any way to configure a font style for a whole presentation table in .Net Core?  
I did find the "BuiltInTableStyle" where the "Custom" Enum throws an error - but in my case "None" works. But also this only affects the styling of the table, not it´s cells.

So while I was not able to figure out how to apply a font style to a table, I created a little workaround like this with a "foreach":

            IPresentation presentation = Presentation.Create();
            presentation.PresentationRenderer = new PresentationRenderer();
            ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
            ITable table = slide.Shapes.AddTable(5, 3, 0, 60, 900, 350);
            var cell = table[0, 0];
            cell.TextBody.AddParagraph("The first text.");
            cell.TextBody.AddParagraph("The second text.");
            foreach(var par in cell.TextBody.Paragraphs)
            {
                par.Font.FontName = "Arial";
                par.Font.FontSize = 8;
            }

Why is the FontName and FontSize applied in the first Paragraph, but not in the second?
I´m using Syncfusion.Presentation.Net.Core 17.1.0.47 <= This version was sent to me by Jamie Whitfield, because I requested the "GetActualHeight" feature for tables in .net Core presentations.


3 Replies

VA Vijayasurya Anandhan Syncfusion Team June 13, 2019 01:36 PM

Hi Steffen,

Thank your for contacting Syncfusion support.

We can reproduce and confirm that the issue with “Font size is not applied for the second paragraph” is a defect. We have logged a defect report.
The fix for this defect is estimated to be available on 21st June 2019.

Note: Since you have not mentioned your product version, we will provide you the patch for this issue in our latest released 2019 Volume 1 SP1 release version (17.1.0.47) . If you are using any other Essential Studio version then kindly let us know the currently installed version, so that we can provide a patch in that version based on our SLA policy.

Please let us know if you have any questions.
Regards,
Vijayasurya A




RM Ramaraj Marimuthu Syncfusion Team June 21, 2019 04:04 AM

Hi Steffen,

Thank you for your patience.

The issue with “Font size is not applied for the second paragraph of the table cell” has been fixed and the patch for this fix can be downloaded from the following location.


Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/17.1.0.47/1152478/F145117/SyncfusionPatch_17.1.0.47_1152478_6212019033532689_F145117.exe
 

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
http://syncfusion.com/Installs/support/patch/17.1.0.47/1152478/F145117/SyncfusionPatch_17.1.0.47_1152478_6212019033532689_F145117.zip
 


Assembly Version: 17.1.0.47
Installation Directions: 
This patch should replace the files “Syncfusion.Presentation.Portable.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\ netstandard2.0 
 
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\ 17.1.0. 47\precompiledassemblies\ 17.1.0. 47\ netstandard2.0

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.


Note: 
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.

https://www.syncfusion.com/account/license

Disclaimer: 
Please note that we have created this patch for version 17.1.0.47 specifically to resolve the following issue reported in this forum 145117.

If you have received other patches for the same version for other products, please apply all patches in the order received.

This fix will be included in our upcoming 2019 Volume 2 SP1 release which is estimated to be available at the end of July 2019 tentatively.

Regards,
Ramaraj Marimuthu.
 



VA Vijayasurya Anandhan Syncfusion Team October 4, 2019 08:53 AM

Hi Steffen, 
 
We are glad to announce that our Essential Studio 2019 Volume 3 release v17.3.0.14 is rolled out which contains the fix for the reported issue with "Font size is not applied for the second paragraph of the table cell" and is available for download under the following link. 
 
https://www.syncfusion.com/forums/148058/essential-studio-2019-volume-3-release-v17-3-0-14-is-available-for-download

Please find the release notes from the following link.
https://help.syncfusion.com/aspnet-core/release-notes/v17.3.0.14?type=all#Presentation-bug-fixes

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 
Regards,            
Vijayasurya A

Loader.
Live Chat Icon For mobile
Up arrow icon