Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Export Report to Excel !!!

Former Member
0 Likes
744

Hi Friends ,

I finished coding for a report to be sent in .xls to the users by email . My question is how many fields in the report can you export to the excel file . In my code there are around 27 fields . This is the error i get when i try to open the .xls file in my Inbox. Please advice .

"This error is usually encountered when an attempt to open a file with more than 65,536 rows or 256 columns is made. Excel is limited to 65,536 rows of data and 256 columns per worksheet. You can have many worksheets with this number of rows and columns, but they are usually capable of fitting into one workbook (file).  The number of worksheets you can have per workbook is limited only by the amount of available memory your system has. By default, Excel can manage 3 worksheets, more if there is available memory to support the quantity of data.

Truncation of rows or columns in excess of the limit is automatic and is not configurable. This issue can usually be remedied by opening the source file with a text editor, such as Microsoft Office Word, and then saving the file off into multiple files with row or column counts within the limits of an Excel worksheet. These files can then be opened or imported into Excel worksheets.

If you are using a data format that does not support use of a text editor, it may be easier to import the data into Microsoft Office Access and then use the export feature of Access to import the data to an Excel format. Other methods of importing large source material into multiple worksheets are available, but may be more complex than using either a text editor or Access.

More information about this error message online. "

Hi Friends ,

I finished coding for a report to be sent in .xls to the users by email . My question is how many fields in the report can you export to the excel file . In my code there are around 27 fields . This is the error i get when i try to open the .xls file in my Inbox. Please advice .

"This error is usually encountered when an attempt to open a file with more than 65,536 rows or 256 columns is made. Excel is limited to 65,536 rows of data and 256 columns per worksheet. You can have many worksheets with this number of rows and columns, but they are usually capable of fitting into one workbook (file).  The number of worksheets you can have per workbook is limited only by the amount of available memory your system has. By default, Excel can manage 3 worksheets, more if there is available memory to support the quantity of data.

Truncation of rows or columns in excess of the limit is automatic and is not configurable. This issue can usually be remedied by opening the source file with a text editor, such as Microsoft Office Word, and then saving the file off into multiple files with row or column counts within the limits of an Excel worksheet. These files can then be opened or imported into Excel worksheets.

If you are using a data format that does not support use of a text editor, it may be easier to import the data into Microsoft Office Access and then use the export feature of Access to import the data to an Excel format. Other methods of importing large source material into multiple worksheets are available, but may be more complex than using either a text editor or Access.

More information about this error message online. "

3 REPLIES 3
Read only

Former Member
0 Likes
635

the message you are getting itself informing you the limitations with EXCEL.

so other alternative is use a text file to open it or send the data as multiple attachments in the mail.

Regards

srikanth

Read only

0 Likes
635

Hi ,

Can i split into 2 excel files and mail it to the user ??? I can't think of any other alternative .

Thanks

Read only

0 Likes
635

Check these links, which are having some code to send mail with multiple attachments.

/people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems

Message was edited by: Srikanth Kidambi