Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

I’m trying to fill a .docx template using the docxtpl library in Python, but I need to do it in multiple steps, because I can’t load the entire context dictionary into memory at once. The problem is ...
MathW166's user avatar
2 votes
1 answer
214 views

I am trying to automatically merge columns of tables using docxtpl on python. My tables are in the following form: context = { 'tbl_contents': [ {'label': '1', 'cols': ['A','A','B']}, {'label':...
user25169060's user avatar
0 votes
1 answer
341 views

I am using docxtpl (python-docx-template) to render a template before I actually render the content from a dict. Although everything works, my images keep missing. I collect multiple other docx-files ...
SamPhoenix's user avatar
0 votes
2 answers
250 views

I am building a little script to make faster word documents. With the help of docxtpl and pysimplegui Now I want to create a table to fill in data. My table layout looks like this: headings = ['test1',...
Triples12's user avatar
2 votes
1 answer
460 views

Well, I continue to use the python-docx-template. I was making the template for some tables, specifically this one: The result table that I'm looking for is this (leaving aside the date/fecha): The ...
DeivDev97's user avatar
0 votes
0 answers
564 views

#My code is as follows: from docxtpl import DocxTemplate adjective = "results & data-driven" doc = DocXTemplate("Resume_Template.docx") context = {'job_title': adjective} ...
WQureshi's user avatar
0 votes
0 answers
522 views

I'm using Python 3.11.2 The tags I have in my word document are as follows: {{first_name}} {{last name}} My code is below creating tags to replace in a word document. I kept the tags and variables the ...
WQureshi's user avatar
1 vote
0 answers
50 views

While the code runs without issues, I cannot locate the "perro.docx" document (the one with the replaceable variables). It's not in the same folder as my Python file and document template. ...
A cp's user avatar
  • 11
1 vote
0 answers
72 views

I have an Excel file with a list of clients, including their name, document number, credit card number, and company. For each client, I need to create a PDF file with the values from the table. First, ...
Gian Marco Caserta's user avatar
0 votes
0 answers
552 views

I am writing a Python program to print out a document. However, If I try to print something out a second time, I get an error stating 'RPC Server Unavailable" Here is my code, using win32com and ...
BasedSquid's user avatar
-2 votes
1 answer
506 views

I want to create a table using docxtpl in python, where the table rows should be dynamic For eg: user_dict = [{"name": "Person 1", "age": 25, "job": "...
Sanju Jayachandran's user avatar
1 vote
1 answer
848 views

Using docxtpl library in Python to generate complex Microsoft Word documents from Excel data, is it possible to generate a single document from multiple "contexts" or tables? For example, ...
Rycliff's user avatar
  • 127
0 votes
2 answers
2k views

I would like to insert two generated sub documents into one template. It partly works, but it seems that there is a bug in docxtpl. The end of my template disappears if I insert my sub document(s). ...
Thomas's user avatar
  • 82
0 votes
1 answer
2k views

I am trying to automate population of word template using python. The library I am using is docxtpl to help me do that. I am getting this expected token ‘end of print statement’ got ‘Size’ error and ...
TheFinisher's user avatar
0 votes
1 answer
393 views

I am generating MS word files through Python using docxtpl. I am trying to import the Humanities&Social Sciences text into an MS word file. But, I see Humanities Sciences printed in MS word. I ...
Mainland's user avatar
  • 4,702
0 votes
1 answer
7k views

I have installed pip install docxtpl with no errors. Previously I have ran programs with no erros. But I am getting this weird error of no module found. Don't know what to do? Installation: Nomodule ...
Mainland's user avatar
  • 4,702
0 votes
1 answer
906 views

Anyone can help me for my code, I am using existing Word Template to extract from csv file to write in table inside template word, and using python libraries such as: docxtpl, pandas, csv user.dst ...
Maysara Anani's user avatar
0 votes
1 answer
704 views

I have a problem with my code. I'm trying to create a docx generator with docxtpl and flask, but I can't get it to work. My intention is to download the file generated with the information acquired ...
Higor ReVeN's user avatar
4 votes
1 answer
3k views

Hi i am using docxtpl to generate the MS Word documents from python using JINJA template engine, I checked this documentation which says we can use special tags for table rows, columns and paragraphs ...
Zain Ul Abidin's user avatar
0 votes
0 answers
113 views

I'm trying to copy & paste a company address into a python script to automate my cover letter. when I paste the address it shows up in a single line in the created word document. I want it to be ...
ABJesary's user avatar
1 vote
1 answer
316 views

How can I add a heading level to text with docxtpl? Can I do something like this: ? rt = RichText() rt.add('Headername', level=1)
Johs's user avatar
  • 93
0 votes
1 answer
1k views

I am trying to generate a .docx document in Django for this I am using docxtpl (Python docx template) that generates documents through .docx templates. I try to generate the document with this data: ...
Fernando Javier León's user avatar
4 votes
2 answers
5k views

I'm using python module docxtpl to print data inside a docx template written with jinja2. Works great so far but i need to render in the docx some simple HTML like this: <h2>Some title</h2>...
Mario's user avatar
  • 171
0 votes
1 answer
2k views

I have a word document page.docx containing tables and the python file file 1.py: from docxtpl import DocxTemplate doc = DocxTemplate("page.docx") context = { 'text': 'there could be your ad'} a = ...
Алексей Безлук's user avatar