ello Cindy:
1-it was some of typo in last post i am sorry for that.
let us to clearify some of the quetions :(i use pinkyonline:)
-- cindy :Did you upgrade a VSTO 2003 solution to work with VSTO 2005 +
Office 2003? And now you're trying to migrate it to Office 2007?
pinkyonline: yes exactely ,
By running a legacy Excel template let application that is using VSTO
sheet object. Which is required to run solutions built using VSTO 2005 this
runtime supports solutions built for Microsoft Office 2007 system. The
creating sheets in run time dynamically are failing to completion properly.
Scenario
GeoDSStemplate projects are creating sheets by using
theicrosoft.Office.Tools.excel dynamically which is VSTO sheet object so
that we can access the named range controls we created in the sheets
programmatically. The project absolutory runs fine in Microsoft Office 2003
system by using VSTO.
After replace VSTO sheet objects with excel Interop sheet objects and
Interop range objects using icrosoft.Office.Interop.excelin office 2007
system it fails the creating sheet to create sheets dynamically at runtime .
Note pleae kindly find the common code in this Blog below setion.
pinkyonline: we are subspecing :
The issue occrued in office 2007 migration now.the creating a sheet in
runtime falis to instance a NamedRange control by using Excel =
Microsoft.Office.Interop.Excel;
This template project is working fine with is task when office 2003 is by
using ExcelVSTO = Microsoft.Office.Tools.Excel;
pinkonline:
when we replace the Microsoft.Office.Tools.Excel to
Microsoft.Office.Interop.Excel to for office 2007 imgration.
it is fail. one of error example :
In method calls between 2 libraries ExcelTemplateLibrary and
GeoDSSTemplateLibrary in runtime , the processing sometimes ( it ) have a
few errors for method overload errors with invalid augments. refer to
getRange, or AddNamed Range method related to NameRange control;
Error 21 The best overloaded method match for
'ExcelTemplateLibrary.clsGlobalTempla{*filter*}gine.AddNamedRange(string,
Microsoft.Office.Interop.Excel.Range, string)' has some invalid arguments
C:\cd2005\ExcelTemplate2007issue\offline report \
pinkyonline: nature of the design in Environment:
it is built in excel office 2003, vsto for office 2003, visaul studio 2005
team suite , project type: template , migrate to office 2007 , with upgrade
to VSTO 2005 se
pinkyonline: i need to know does any limitation or not-support by VSTO 2005
se for office 2007 to using:
is a corrct appoaching write code : to creating a sheet in runtime to
instance a NamedRange control by using Excel =
Microsoft.Office.Interop.Excel;
in office 2007 migration now with C#?
thank you advance:
Pink:)
i will post next 3 post for add the code. it is limited to 30000
Excel.Range rngRange;
Excel.Range rngDivRange;
DataRow[] arr_dRSheet;
DataRow[] arr_dRRange;
string[,] arr_strRRRange;
string strWSName = "";
string strFilter = "";
string strSuperRangeName = "";
string strSoldTo = "";
string strDivRangeName = "";
int iRRColsCount = 0;
int iRRRowsCount = 0;
int iRowIndx = 0;
int iStartIndx = 1;
string strUpdDim = "";