Opened 14 years ago
Last modified 14 years ago
#1216 accepted defect
ActivateWS and ActivateNamedWS only activate the first sheet
Reported by: | Jorge | Owned by: | Jorge |
---|---|---|---|
Priority: | high | Milestone: | TOL Packages |
Component: | Excel API | Version: | 2.0.1 |
Severity: | critical | Keywords: | |
Cc: | jmdedios@… |
Description
The excel attached is impossible to be read because the functions ActivateWS and ActivateNamedWS can only activate the first sheet. The following code opens the excel attached an activates the first sheet ("Resumen Tráfico") but it returns an error when trying to activate another one.
However, the code using the old version of the functions, activates all the sheets of the excel book.
#Require TolExcel; TolExcel::@WorkBook wb = TolExcel::@WorkBook::Open( "c:/Temp/Capacidades_20100701.xls" ); Real resSelHoj = wb::ActivateNamedWS("Resumen Tráfico"); wb::ActivateNamedWS("Desarrollo"); Real resSelHoj = wb::ActivateWS(1); wb::ActivateWS(2); Real wb::Close(?);
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | Capacidades_20100601.xls added |
---|
comment:1 Changed 14 years ago by
Status: | new → accepted |
---|
Note: See
TracTickets for help on using
tickets.
This ticket comes from #1215.