468,287 Members | 2,018 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,287 developers. It's quick & easy.

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

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

May 6 '07 #1
2 1454
ici

Levi Campbell wrote:
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()

May 6 '07 #2
ici

Levi Campbell wrote:
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()

May 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Lisa | last post: by
2 posts views Thread by Mux | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.