Posted 13 April 2018, 12:28 am EST
Hello John,
There is no direct documentation link explaining the customization of a C1FlexViewer yet.
Below mentioned are two ways of customizing a C1FlexViewer:
a) For adding new ribbon tab(s) in C1FlexViewer and C1RibbonPreview, use the below code snippet:
//Flex viewer
c1FlexViewer1.Ribbon.HideTabHeaderRow = false;
c1FlexViewer1.Ribbon.Tabs.Add(new C1.Win.C1Ribbon.RibbonTab("Tab 1"));
//Ribbon preview
c1RibbonPreview1.Ribbon.HideTabHeaderRow = false;
c1RibbonPreview1.Ribbon.Tabs.Add(new C1.Win.C1Ribbon.RibbonTab("Tab 1"));
b) You can change the icons in the preview component as per your requirement(s), using:
```
//Change images in flex viewer
c1FlexViewer1.RibbonElements.Print.LargeImage = imgLarge;
c1FlexViewer1.RibbonElements.Print.SmallImage = imgSmall;
//change images in ribbon preview
c1RibbonPreview1.RibbonElements.Print.LargeImage = imgLarge;
c1RibbonPreview1.RibbonElements.Print.SmallImage = imgSmall;
c) You can set a C1FlexViewer's elements to be right aligned, using:
c1FlexViewer1.RightToLeft = RightToLeft.Yes;
If this is not what you need, please share the requirement and we will help you accordingly.
As of now, how much time does it take for a pdf/report to render for you? We would need the below mentioned information to be able to assist you:
1. The size of the pdf/report being used.
2. Code snippet showing the preview operations performed at your end.
3. Environment of the system.
4. A demo pdf/report with which you face the issue.
Best Regards,
Esha