Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

report direct to word template

Status
Not open for further replies.

fedum

Technical User
Mar 22, 2004
104
BE
Ok I know this question was asked before but I never found a good answer.
So please help!
Can I bring the content of a report, like it is in the prnt exmample, direct into a word template? If access can export this layout into a rpt-file why can't we?
Do I really have to use the merging system?
 
direct into a word template

Try the backwards approach: put the template in the report.

Cogito eggo sum – I think, therefore I am a waffle.
 
If I put the template into the database then it will allways be justed?
Can you please explane the action you mean.
Thank you.
 
I don't quite understand the problem. Do you want to programmatically print an Access report as a Word doc, or do you want the Word doc to appear in the report?

Cogito eggo sum – I think, therefore I am a waffle.
 
I would like to print the report in Word on a template just like you can if you you choose to export the report to word as a rtf file. But then on my own template and not de normal.dotx. I have found this instruction:
ExportToRTF "rptBestellijst", "C:\Users\Marc\Documents\Bedrijfsoverzicht8\bedrijfsoverzicht\rptbestellijst.docx"

But the problem is still the template and the filter that I place in the report. The filter is ignored in the worddoc.

I don(t know if I can use a template in access for a report. But it may not always be the same template if possible.

I hope that I have explained it better now!
Marc
 
Perhaps some of your code would have to be run in Word - you could actually have it typed in Access, but run in Word... that's what I'm thinking, possibly anyway...

But what genomon is saying is that it would be (at least) best if you actually have all your formatting done in a Report Template within Access, rather than a Word Doc template..

Here's a little snippet from MS about doing such:

--

"If to err is human, then I must be some kind of human!" -Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top