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

[Solved] pdf alignment

2 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 02 Apr 2009, 06:06 AM

Hi All

 

protected

void rgvReport_OnExcelExportCellFormatting(object source, ExcelExportCellFormattingEventArgs e)

 

{

 

if (e.FormattedColumn.HeaderText == "Date")

 

e.Cell.HorizontalAlign =

HorizontalAlign.Center;

 

}

This coding is for setting the alignment for a field with heading "Date" to center in excel.

I there any option like this for changing the alignment in pdf

Same thing to make the field with heading "Date" to center.

-Anto

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Apr 2009, 09:18 AM
Hello Anto,

Please examine the following document:
Exporting tips and tricks

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 06 Apr 2009, 11:47 AM
Hi Daniel

Thank you

I have solved it

-Anto
Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Share this question
or