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

Python set_clipboard_value not working #4

Open
oldblivion opened this issue Mar 13, 2017 · 1 comment
Open

Python set_clipboard_value not working #4

oldblivion opened this issue Mar 13, 2017 · 1 comment

Comments

@oldblivion
Copy link

When trying to use set_clipboard_value to set a field to an HTML string (or any string as per code below) the resultant field in the output docx is blank. I have also tested this function in c++ where it does work.

merger.load(current_app.root_path + "/static/template1.dfw")
merger.set_clipboard_value("Data", "Comments", "doc")
merger.paste("Data")
merger.save("/tmp/" + filename + ".docx")

Attached is the docx I am templating from
template1.docx

@ThanHuuTuan
Copy link

mee too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants