Xlsm file requirement for blank_template #21
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
more info required
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
yulqen/datamaps#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At the moment for export blank_template needs to be an xlsm file. Would be possible to handle xlsx files also?
Thanks.
I guess so. If I remember, the reason for using "xlsm" files was because the
template contained macros. Not sure why "xlsx" files weren't enabled also.
What's your timescale?
On 01-11-2021, Will Grant wrote:
--
Matthew Lemon
Email: @.***
No timescale really. Whenever's good for you. Cheers.
As far as I can tell,
xlsxfiles are imported fine (datamaps import templates -d datamap.csv -m --inputdir .for example).exportcreatesxlsmfiles from a master but these can just be re-saved asxlsxfiles if you wish.As far as I recall, we wanted the
blank_templatefile to be macro-enabled forsome reason - are you saying that you want these exported files to be
xlsxfiles now, or do you want the choice?
Be good to get a more detailed scenario or the problem you are facing/the exact params you'd like to see
in the Issue! We can discuss later in the week of course.
Ok thanks. I'll look into this further with the team and get back to you.
Hiya, re the above it would be good if the datamaps export command could simply handle both .xlsm and .xlsx files. This is a because the team is using datamaps for another data gathering bit of work which doesn't need an .xlsm file (only a simple xlsx).
Ok.
Options for implementation
(Note to self: point at where decision is made is in
bcompiler-engine.repository.templates:93.) Just thinking out loud here.datamaps(datamaps.main:329).bcompiler-engine.adapters.cli:89.template, with no further config or user intervention. Then all code could
be handled inside
MultipleTemplatesWriteRepo.@banillie - Would you be content for the file type of the exported spreadsheets to match that of the template? In other words, if the blank template file is
xlsx, the exported templates will bexlsxalso? This is considerably more straightforward than adding a new command line option which allows the user to choose the output format and would be my preference in terms of simplcity. Happy to implement the command line flag option but it will take a bit longer.Yes absolutely. Simply output the same file format. I think that makes more sense in terms of design anyway. Cheers.
Wow - I need to do this.