By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,096 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,096 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.