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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reg : PDF format

Thread ID:

Created:

Updated:

Platform:

Replies:

31274 Jul 5,2005 04:56 AM UTC Jul 21,2005 08:35 AM UTC Windows Forms 2
loading
Tags: PDF
Anna Srinivasan
Asked On July 5, 2005 04:56 AM UTC

Hi, I am using export to pdf function. I have taken example from syncfusion northwind pdf sample. 1)Increse number of columns in the datable. 2)Do export To pdf . while i am getting in the pdf format my columns width are getting reduced. Note: If number of columns less then 10, pdf format is more readable otherwise not. Help me..!

Administrator [Syncfusion]
Replied On July 12, 2005 11:16 AM UTC

Hi Anna, I am afraid this is a limitation of the PDF format. There seems to be no way to increase the width of the PDF document so the alternative approach would be to limit the number of columns in each page, we would have to make the remaining columns continue on the next page. [This would be the same behavior as printing a grid that is 100+ coumns wide on a A4 Paper.]. We will have a Grid to PDF exporter component soon, that would automatically do that. Thanks, Stephen. >Hi, > I am using export to pdf function. >I have taken example from syncfusion northwind pdf sample. > >1)Increse number of columns in the datable. >2)Do export To pdf . >while i am getting in the pdf format my columns width are getting reduced. > >Note: If number of columns less then 10, pdf format is more readable otherwise not. > >Help me..!

Anna Srinivasan
Replied On July 21, 2005 08:35 AM UTC

Hi, Atleast for few columns(<5) i want to set the column witdth what is there in gridgroupingcontrol. How do i do that...? Source for PDF -- DataTable. Following code i am using to get pdf file DataTable dt = new DataTable(); int numCols = grid.TableDescriptor.VisibleColumns.Count; foreach(GridVisibleColumnDescriptor cd in grid.TableDescriptor.VisibleColumns) { string s = grid.TableDescriptor.Columns[cd.Name].HeaderText; dt.Columns.Add(new DataColumn(s, grid.TableDescriptor.Columns[cd.Name].FieldDescriptor.GetPropertyType())); } foreach(Record r in grid.Table.FilteredRecords) { DataRow dr = dt.NewRow(); foreach(GridVisibleColumnDescriptor cd in grid.TableDescriptor.VisibleColumns) { string s = grid.TableDescriptor.Columns[cd.Name].HeaderText; dr[s] = r.GetValue(cd.Name); } dt.Rows.Add(dr); } dt.AcceptChanges(); table.DataMember = dt.TableName; table.DataSource = dt; table.ConfigureTable(dt); thanks, Anna

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;