Question

Export Cross tab to Excel in Crystal Report 2008

Asked by: MuraliKanth

Hi,

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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-19 at 18:50:09ID24666906
Topic

Crystal Reports Software

Participating Experts
2
Points
500
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Merging tables in Crystal Reports
    I have two tables for source to a Crystal Report. I would like to "merge them" and report on them as though they were one table - like a union query in SQL. Is this possible (and how) in Crystal?
  2. Merging Crystal Reports
    I have a set of 5 Crystal Reports which have been loaded into Crystal Enterprise. Currently the user has to select the report in eportfolio, enter the parameters etc and repeat for all the other reports. What is needed is a way of merging all 5 reports into one large report ...
  3. Linking Question for Crystal Experts
    Continuation of http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_21877127.html All Crystal Reports experts. Please monitor this question.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

by: mlmccPosted on 2009-08-19 at 19:33:58ID: 25139006

 

by: MuraliKanthPosted on 2009-08-19 at 19:36:35ID: 25139017

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.

 

by: mlmccPosted on 2009-08-19 at 19:38:27ID: 25139027

have you tried the DATA ONLY export?

mlmcc

 

by: MuraliKanthPosted on 2009-08-19 at 19:39:51ID: 25139033

yes tried that as well.

 

by: mlmccPosted on 2009-08-19 at 19:49:08ID: 25139067

I don't know.  It may ne one of the limitations in the Excel export.

mlmcc

 

by: James0628Posted on 2009-08-22 at 19:38:44ID: 25161164

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

 

by: MuraliKanthPosted on 2009-08-23 at 18:28:56ID: 25165110

"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.

 

by: mlmccPosted on 2009-08-23 at 19:25:05ID: 25165291

DOes your cross tab have long text fields?
 
Have you tried using the column resize or do they resize when you refresh?

mlmcc

 

by: James0628Posted on 2009-08-25 at 05:15:05ID: 25176652

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

 

by: MuraliKanthPosted on 2009-08-25 at 18:04:07ID: 25183684

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*

 

by: mlmccPosted on 2009-08-25 at 18:30:41ID: 25183804

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

 

by: James0628Posted on 2009-08-26 at 05:38:01ID: 25186858

> 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

 

by: MuraliKanthPosted on 2009-08-28 at 00:05:43ID: 25205502

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: James0628Posted on 2009-08-28 at 05:55:26ID: 25207023

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

 

by: MuraliKanthPosted on 2009-09-06 at 23:34:35ID: 25273053

" 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*

 

by: mlmccPosted on 2009-09-07 at 17:55:54ID: 25278073

The basic problem is your column titles are too long.

Can you change them in the report then change them bac in Excel?

You could use a formula like

If {columnTitleField} = "50ANNB-7% - 50th ANNIVERSARY NOTEBOOK - O7 - 535691 "  then
     '50ANN'
else  

etc

mlmcc

 

by: MuraliKanthPosted on 2009-09-07 at 18:39:09ID: 25278198

No i am not supposed to change the column contents. It can appear as a wrapped column in excel but the contents should be full and not partial.

 

by: mlmccPosted on 2009-09-07 at 20:53:38ID: 25278503

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

 

by: MuraliKanthPosted on 2009-09-07 at 23:04:50ID: 25278997

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*

 

by: James0628Posted on 2009-09-08 at 00:51:13ID: 25279476

> >> 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

 

by: MuraliKanthPosted on 2009-09-10 at 01:55:43ID: 25298421

@ 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*

 

by: James0628Posted on 2009-09-12 at 05:19:30ID: 25316190

Sorry that we couldn't come up with a solution, but at least you found another way to get what you need.

 James

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...