You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SaveTablesToWorkBook and SaveTablesToWorkBookEx do a great job.
Except I can not adress the location.
It will create a new sheet and start on A1. What I like would the possibility to (optionally) address:
an existing sheet
a starting cell for header
a starting cell for data
The calling code must be responsible to place the stuff on something meaningful, so data should not write over header line.
toHeaderLoc and toDataLoc could be an empty object like
toHeaderLoc.BegCol
toHeaderLoc.BegRow
toHeaderLoc and toDataLoc are used for tvSheet as number only, only for existing tnWB too.
In this way I could fill data into an existing workbook / template and should be able to keep existing formats etc. As far as I see the write would work with existing sheets/cells.
The text was updated successfully, but these errors were encountered:
Will look into adding this feature request. The SaveTablesToWorkBookEx() method is designed to write directly to a new spreadsheet file; so there is not an existing sheet to write to. Method SaveTablesToWorkBook() could be enhanced to selectively create a new sheet or write to an existing sheet. Both methods could have optional parameters for the starting column and row. However, the checking of existing data in the cells would add considerable overhead and then what to do if found? So I don't think this would be feasible.
Sorry for the delay. First full of work, then vacation. :D
What I like to have for SaveTablesToWorkBook:
a way to address a sheet different then sheet number 1 - this is tvSheet Running number or sheet name. The calling code is responsible to create / name sheets if needed.
only write the data to the cells, this is
create cells if not existing
fill existing cells with data, but do not touch existing formats
I understand this is slower then just putting the data into an empty sheet. But it's still faster the using EXCEL automation for it. If EXCEL is available at all, what is a problem with the cloud based stuff. So for the speed it is a minor issue.
Sure, it could be an additional method, what keeps SaveTablesToWorkBook as simple and fast.
SaveTablesToWorkBook and SaveTablesToWorkBookEx do a great job.
Except I can not adress the location.
It will create a new sheet and start on A1. What I like would the possibility to (optionally) address:
The calling code must be responsible to place the stuff on something meaningful, so data should not write over header line.
Parameters like:
where
tvSheet
Type Char
as existing tcSheetName
Type Num
number (Id) of existing sheet to write to
Locs
toHeaderLoc and toDataLoc could be an empty object like
toHeaderLoc and toDataLoc are used for tvSheet as number only, only for existing tnWB too.
In this way I could fill data into an existing workbook / template and should be able to keep existing formats etc. As far as I see the write would work with existing sheets/cells.
The text was updated successfully, but these errors were encountered: