XLSReadWriteII (.NET) Issues

Questions and answers on how to use XLSReadWriteII 2.

XLSReadWriteII (.NET) Issues

Postby symmetric » Mon Dec 18, 2006 7:59 pm

We recently purchased XLSReadWriteII.NET (2.00.32a). We're seeing the following issues:

1. Setting the DataLabel property while generating a pie chart causes an Access Violation

2. When creating a workbook with multiple worksheets, we see that the default (first) worksheet isn't selected. Setting SelectedTab doesn't seem to make any difference.

The second issue isn't a huge deal (the user can click a few times to select a tab), but the first issue is big -- we can't create a pie chart with any captions.
symmetric
 
Posts: 3
Joined: Mon Dec 18, 2006 7:40 pm

Postby larsa » Thu Dec 21, 2006 8:43 am

Hello

I will take a look at this, but I'm on vacation until January 16, so I wil do it when I'm back.


Lars Arvidsson
larsa
Site Admin
 
Posts: 690
Joined: Mon Jun 27, 2005 9:30 pm

Postby symmetric » Tue Dec 26, 2006 6:17 pm

I asked a developer to provide some sample code of what works and what doesn't work.


The following generates a NullReferenceException

Code: Select all
            TDataPoint p = s.DataPoints.Add();
            p.PointIndex = i;
            p.DataLabel = TChartDataLabels.cdlCategory |  TChartDataLabels.cdlValue;
            p.AreaFormat.ForegroundColor = GetNextChartColor();


As a workaround, the developer is creating labels manually:

Code: Select all
     TChartLabel dataLabel = chart.Labels.Add(TChartLabelType.cltDataPoint);
     dataLabel.DataPointIndex = i;
     DataRow dr = dt.Rows[i];
     dataLabel.Text = String.Format("{0}, {1}", dr[0], fields[1].GetFormattedValue(dr));
symmetric
 
Posts: 3
Joined: Mon Dec 18, 2006 7:40 pm

Re: XLSReadWriteII (.NET) Issues

Postby j124650 » Wed Jan 17, 2007 4:00 pm

2. When creating a workbook with multiple worksheets, we see that the default (first) worksheet isn't selected. Setting SelectedTab doesn't seem to make any difference.

We have the same problem but with WordArt object embedded into excel document with a single sheet. After writing proc sheet is not selected. Printing is also unavailable.
j124650
 
Posts: 1
Joined: Wed Jan 17, 2007 3:53 pm

Postby symmetric » Fri Feb 02, 2007 3:31 am

larsa wrote:I will take a look at this, but I'm on vacation until January 16, so I wil do it when I'm back.


Have you had a chance to look into the SelectedTab issue? When we create a workbook with a single worksheet, the sheet isn't really selected. As a result, when users try to print, they get an error ("Microsoft Office Excel did not find anything to print").

In order to get the worksheet to print, one must manually click on the tab a few times to force Excel to select it. (This workaround is not something that will work for our user base....they expect a polished app that just works).
symmetric
 
Posts: 3
Joined: Mon Dec 18, 2006 7:40 pm

Re: XLSReadWriteII (.NET) Issues

Postby TieWU » Wed Mar 10, 2010 7:21 pm

I am having the same problems as symmetric.

One additional problem I have is that after clicking the tab a few times to select it so that I can print it, my borders and cell colors do not show up in the printout.

Are there any solutions to this?
TieWU
 
Posts: 1
Joined: Wed Mar 10, 2010 7:19 pm


Return to XLSReadWriteII 2

Who is online

Users browsing this forum: MSN [Bot] and 2 guests