exporting a record from a database to a MS Word document.

L

Levi Campbell

Is there a way to export a record from a database kept with bsddb to
MS Word, possibly with some type of formatting data?
 
I

ici

Levi said:
Is there a way to export a record from a database kept with bsddb to
MS Word, possibly with some type of formatting data?

import win32com.client

try: import psyco; psyco.full()
except ImportError: pass

app = win32com.client.Dispatch("Word.Application")
app.Visible = True
doc = app.Documents.Add()
para = doc.Paragraphs.Add()
para.Range.Text = "DB Record"
para.Range.Bold = True
#...
doc.Close(True)
app.Quit()
 
I

ici

Levi said:
Is there a way to export a record from a database kept with bsddb to
MS Word, possibly with some type of formatting data?

import win32com.client

try: import psyco; psyco.full()
except ImportError: pass

app = win32com.client.Dispatch("Word.Application")
app.Visible = True
doc = app.Documents.Add()
para = doc.Paragraphs.Add()
para.Range.Text = "DB Record"
para.Range.Bold = True
#...
doc.Close(True)
app.Quit()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top