This is a migrated thread and some comments may be shown as answers.

Style Issue Reflects export

2 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sentil
Top achievements
Rank 1
Sentil asked on 11 Nov 2013, 12:37 PM
hi Guys



I am working on dynamic Table where textbox are dynamic

below is code , i am making one textbox bottom border style=none

labelTextBox.Style.BorderStyle.Bottom = BorderType.None; //Not Exporting to Powerpoint
                    labelTextBox.Style.BorderStyle.Top = BorderType.Solid;
                    labelTextBox.Style.BorderStyle.Left = BorderType.Solid;
                    labelTextBox.Style.BorderStyle.Right = BorderType.Solid;

labelTextBox.Style.BorderStyle.Bottom = BorderType.Solid; //Exporting to Powerpoint
                    labelTextBox.Style.BorderStyle.Top = BorderType.Solid;
                    labelTextBox.Style.BorderStyle.Left = BorderType.Solid;
                    labelTextBox.Style.BorderStyle.Right = BorderType.Solid;

Attached sample image which i am in need of

Senthil


2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 14 Nov 2013, 09:37 AM
Hello Senthil,

In addition to the items' Style there is a Table.Style, where you may need to change how borders would appear.

The recommended approach is to create a simple report using the provided report designer and Table Wizard, style it as required and finally reuse the generated in the report's designer.cs(vb) code. To verify your dynamic report definition, serialize the report instance in XML(trdx file) and preview it with the corresponding version of the Standalone Designer.

If you need any further help, please elaborate on the issue, what settings are applied, how they render and what is the difference than the expected layout. Also if creating the same Table item with our designer and exporting it to PowerPoint reproduces the same problem.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Sentil
Top achievements
Rank 1
answered on 14 Nov 2013, 11:51 AM
Hi Thanks

I achieved by using following code hope this helps others

labelTextBox.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
                    labelTextBox.Style.BorderWidth.Default = Unit.Pixel(1D);
                   // labelTextBox.Style.BorderStyle.Bottom= BorderType.Solid;
                    labelTextBox.Style.BorderWidth.Bottom= Unit.Inch(0); // made to be 0
                    labelTextBox.Style.BorderColor.Bottom= Color.White; //made to be white


This is working for all export

Senthil
Tags
General Discussions
Asked by
Sentil
Top achievements
Rank 1
Answers by
Stef
Telerik team
Sentil
Top achievements
Rank 1
Share this question
or