Python Forum
How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file?
#1
Hello all. I'm wondering if someone can direct me to the proper documentation for how to write text to a file that is formatted in different ways, such as making the font bold or italicized, or changing the font sizes, etc. Ideally it would be a .doc file.

Thank you!
John
Reply


Messages In This Thread
How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? - by JohnJSal - Jun-19-2018, 03:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What does .flush do? How can I change this to write to the file? Pedroski55 3 286 Apr-22-2024, 01:15 PM
Last Post: snippsat
  Last record in file doesn't write to newline gonksoup 3 479 Jan-22-2024, 12:56 PM
Last Post: deanhystad
  Python code for alignment and font size 1418 0 343 Jan-14-2024, 03:56 AM
Last Post: 1418
  write to csv file problem jacksfrustration 11 1,618 Nov-09-2023, 01:56 PM
Last Post: deanhystad
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,548 Nov-09-2023, 10:56 AM
Last Post: mg24
  logging: change log file permission with RotatingFileHandler erg 0 1,081 Aug-09-2023, 01:24 PM
Last Post: erg
  How can I change the uuid name of a file to his original file? MaddoxMB 2 970 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Change font in a list or tuple apffal 4 2,735 Jun-16-2023, 02:55 AM
Last Post: schriftartenio
  How do I read and write a binary file in Python? blackears 6 6,991 Jun-06-2023, 06:37 PM
Last Post: rajeshgk
  Converted EXE file size is too large Rajasekaran 0 1,547 Mar-30-2023, 11:50 AM
Last Post: Rajasekaran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020