Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder.OpenFile and other builder.xxxx operations fail silently when single quotes are used in arguments #119

Open
twiggy opened this issue Nov 27, 2023 · 1 comment
Labels
feature request Issues that request new features to be added to OnlyOffice

Comments

@twiggy
Copy link

twiggy commented Nov 27, 2023

Was using documentbuilder v7.5 from the cli using docbuilder.

Had a .docbuilder file whose first line was

builder.OpenFile('myfile.xlsx')

Next line was Api.GetSheet... got an error message saying Api not defined.

After messing around figured out that if single quotes are used instead of double quotes the tool doesn't properly process the builder.XXXXX commands. Using the debugger it seems like those commands are specially cut out and ran through C++ so I'm guessing the code doesn't properly extract the arguments. Same goes for builder.CreateFile('docx') ...only works for builder.CreateFile("docx").

For now will just use double quotes, but I typically use single quotes when writing javascript which is how I fell into this.

Thanks!

@askonev
Copy link
Member

askonev commented Jan 17, 2024

Posted ench in our tracker #65928

@Rita-Bubnova Rita-Bubnova added the feature request Issues that request new features to be added to OnlyOffice label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to OnlyOffice
Projects
None yet
Development

No branches or pull requests

3 participants