I referred to this article already and tried it. But can't do anything in aliging the Cross tab cells only resize is allowed in that.
Main Topics
Browse All TopicsHi,
I have around 47 columns appearing on a cross tab report in Crystal report 2008. When i try to export to excel it shows only upto 30 columns and remaining are ignored as the end of the excel column IV is reached.
I tried different options but nothing seems to work. When exported to excel it merges columns to display the text and there by running out of columns.
Any idea to fix it ?
-Murali*
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I just tried exporting a cross-tab with about 50 columns to Excel in CR 10 and it seems to have all of the columns. The last column in the Excel file is AY, or column 51. I used the "data only" export.
> When i try to export to excel it shows only upto 30 columns and
> remaining are ignored as the end of the excel column IV is reached.
"excel column IV" ?
> When exported to excel it merges columns to display
> the text and there by running out of columns.
I'm not sure what you mean by that.
James
"excel column IV" ?
>> means last column of excel
I'm not sure what you mean by that.
>> say i have a title column like "FIN - 7% - Fines for Employees - 768969" this occupies say 6 to 7 cells in excel (merged together), similarly it does the same for rest of the columns and there by running out of columns.
Re: "excel column IV"
Oh, you mean like AA, AB, AC, ... BA, BB, BC, ... CA, CB, CC, etc. all the way out to IA, IB, IC, ... IV?
If so, that's a lot of columns (Duh :-) and since you said you were only getting 30 columns, I thought that IV must mean something else.
Assuming that you are getting all of those columns in the spreadsheet:
Are you sure that you tried the "data only" export? What export options did you choose ("column width based on", "include headings", etc.)? What you're describing sounds similar to what I've seen when I tried an Excel export with certain options (I think the main thing was not using "data only"). I actually got an Excel file that looked pretty similar to my report, but it used a lot of columns. I think maybe every character was in a separate column or something like that. It's been a while.
James
Yes you got my problem James.
I tried data only as well but it doesn't fit in. Also it looked lot shabby as i need to reformat every column manually for the width. I dont know if there is any limitation with CR 2008 for export to excel... But any how i am re-writing the entire stuff in java.
But still i would try to get it done in CR , let you me know if you have some ideas.
-Murali*
The limitation is in Excel.
What version of Excel are you choosing? Older versions of Excel had a 256 column limit.
Excel 2000 has a 256 column limit
Excel 2007 has a 16,000+ limit on columns.
Not sure about other versions between 2000 ad 2007
Have you tried the ideas in the article I provided?
In those you can minimize the cell merging thus allow for more columns.
mlmcc
> I tried data only as well but it doesn't fit in.
Do you mean that you still didn't get all of the columns?
I think my "normal" Excel export is "data only", with:
Column width based on objects in the: Details
Export page header and page footer
Simplify page headers
When I exported a cross-tab in CR 10 using those options (or something very close to that), each column of my cross-tab was in a single column of the spreadsheet, so I had no problem exporting a 50 column cross-tab.
True, the column widths in an export like that may not be correct. There may be some export options that will help with that. I'm not sure. Personally, I just resize the columns as necessary. Forgive me if you already know this, but you can click on the upper left corner to select the whole sheet, then double-click beside one of the column margins to resize all of the columns to fit the data at the same time (as opposed to resizing each column separately, which sounds like what you've been doing).
James
Column width based on objects in the: Details
>> how can a cross tab has Details?
I would like to mention that my cross tab has many hidden values say individual tax for every column is hidden whereas the grand total of tax is shown. Similarly i have 3 more hidden columns. 2 Embedded summary and 2 hidden embedded summary. All these hidden elements also contribute to the space in excel. Even with data only i get something like this, (note the space between the two column names...
50ANNB-7% - 50th ANNIVERSARY NOTEBOOK - O7 - 535691 BFA - BLOCK FUND-A - OY - 535691
0.00 0.00
0.00 0.00
0.00
0.00
0.00
0.00
0.00
@mlmcc:
I tried the article already before i post this question here, but of very little help.
-Murali*
By "hidden", I assume that you mean suppressed. True, suppressed fields can be an issue. As I recall, they're still included in Excel exports. Eliminating those probably won't solve your problem, but, FWIW, if they're suppressed, do you really need them in the report? For example, if you put a field on the report simply so that you could do a summary on that field, once you've created the summary, you don't need the field on the report anymore. You can remove the field from the report and the summary will still be calculated.
As for the example that you posted, I don't really know what I'm looking at.
Are those just 2 columns from the spreadsheet?
Is the "space between the two column names" that you referred to the space in front of BFA on the first line?
If what you posted is not right, what's wrong with it? What would you like it to look like?
James
" You can remove the field from the report and the summary will still be calculated."
>> could you please tell me how can i do that in Cross tab report?
If what you posted is not right, what's wrong with it?
>> if you see the title "50ANNB-7% - 50th ANNIVERSARY NOTEBOOK - O7 - 535691 " the contents below it are aligned to one cell and the next title appears at the end of this title. I mean there are empty cells between these two columns almost 8+ empty cells between these 2 cols alone which gradually leads me to the end of IV columns.
-Murali*
I am suggesting changing them in Crystal then change them back once they get into Excel.
Have you tried shrinking the width of the titles in Crystal?
ANother idea would be to change the titles to something like
If {columnTitleField} = "50ANNB-7% - 50th ANNIVERSARY NOTEBOOK - O7 - 535691 " then
"50ANNB-7%" & chr(13) & " - 50th " & chr(13) & "ANNIVERSARY" & chr(13) & "NOTEBOOK" & chr(13) & " - O7 - " & CHR(13) & "535691 "
That doesn't really change it but makes it seem narrower to Crystal so it may export as 1 column and not 10.
mlmcc
The column titles are dynamic and it cannot be hardcoded. Moreover the user of these reports doesn't want to alter anything in the excel report but can ammend some new records. So the report should be well formatted for them to add any new records to the excel.
I already tried shrinking the title column but of no use.
-Murali*
> >> could you please tell me how can i do that in Cross tab report?
Hmm. Good point. It didn't occur to me that you had suppressed fields in your cross-tab. If they're being used to get summaries in the cross-tab, you probably can't remove them.
As for your heading taking multiple columns, is that a group heading in your cross-tab that covers multiple columns? I guess that would explain it. But if it was a group heading like that, you probably wouldn't be expecting those columns to line up.
James
@ James and @mmlc:
Thanks for your help. I tried all possible options but couldn't generate a proper excel.
I have moved to Java with POI to generate the same and its done perfectly in that.
So i am closing this thread, with a split between two of you for ur patience in guiding me. Also i m not taking any of ur suggestion as accepted answer, as i have come to a comclusion that this is not going to work out.
Thanks for ur help.
-Murali*
Business Accounts
Answer for Membership
by: mlmccPosted on 2009-08-19 at 19:33:58ID: 25139006
Check this article on exporting to Excel
om/irj/boc /index?rid =/library/ uuid/20c9c 239-7b64-2 b10-4ab3-b 59d52ed35d e&override layout=tru e
https://www.sdn.sap.c
mlmcc