Topic:MS Access Report Looks Different in Word Remainpoint:0
   
PostTime:12/16/2008 6:22:20 PM FloorTop
Lv is 1
Avatar
Level:
1
Professional point:
52
Experience:
2
Thread:
291
Post:
928
Total online time:
2M
Joined date:
4/28/2007 10:52:00 PM
Last Visit:
12/17/2008 12:08:28 AM
Status:
Offline
I am sure that most readers of this post will have experienced the situation where an Access report is saved as an RTF file and opened later in Word only to find that some of column widths do not come out the same. It appears as though some strings of characters come out wider (or narrower) in Word than they do in the open report.

I've had this happen often but now I'm being called upon to actually do something about it. Any suggestions for making the Report and Word versions look more alike? (And no I, cannot use a fixed-space font.)
 
     
   
Gender PostTime:12/16/2008 7:38:43 PM Point:0 | Floor# 1
Lv is 1
portrait
Level:
1
Professional point:
87
Experience:
35
Thread:
282
Post:
936
Total online time:
35M
Joined date:
4/28/2007 11:15:00 PM
Last Visit:
12/16/2008 11:26:43 PM
Status:
Offline
You could write some VBA to output directly to a MS Word document. You could also set up a word document with merge fields that come from the database as the data source.
 
     
   
Gender PostTime:12/16/2008 8:06:44 PM Point:0 | Floor# 2
Lv is 1
portrait
Level:
1
Professional point:
5
Experience:
28
Thread:
261
Post:
1005
Total online time:
28M
Joined date:
4/29/2007 2:32:00 AM
Last Visit:
12/17/2008 12:22:50 AM
Status:
Offline
I like Rockn's suggestion but sadly do not have time left on this project to develop that kind of solution on my own. I think will try it on my next project.. If Rockn (or anyone) has sample code that uses this aproach, I'd be grateful if you'd post it here.
 
     
   
Gender PostTime:12/16/2008 8:26:58 PM Point:0 | Floor# 3
Lv is 1
portrait
Level:
1
Professional point:
94
Experience:
0
Thread:
293
Post:
994
Total online time:
0M
Joined date:
4/29/2007 12:25:00 AM
Last Visit:
12/16/2008 11:23:06 PM
Status:
Offline
All I can say, is if you find a fix, please let me know - I have the same problem for a major client (and a huge report) 4x a year, and it usually involves my spending an incredible number of hours correcting the final word documents. (I always copy and paste a number of .RTF files into one final Word document for the client).
 
     
   
Gender PostTime:12/16/2008 8:37:38 PM Point:0 | Floor# 4
Lv is 1
portrait
Level:
1
Professional point:
83
Experience:
2
Thread:
242
Post:
980
Total online time:
2M
Joined date:
4/28/2007 10:38:00 PM
Last Visit:
12/16/2008 11:40:24 PM
Status:
Offline
Snapshots aren't really practical for document exchange. If I need to distribute my reports I save them as PDF files. If you're sending to Word because you have to edit the report, ...I don't know. If you're editing anyway, I guess the inconsistency wouldn't matter much, so that must not be the issue. I'd just save as PDF.

chris.
 
     
   
Gender PostTime:12/16/2008 8:59:46 PM Point:0 | Floor# 5
Lv is 1
portrait
Level:
1
Professional point:
4
Experience:
3
Thread:
263
Post:
954
Total online time:
3M
Joined date:
4/29/2007 2:46:00 AM
Last Visit:
12/16/2008 11:21:46 PM
Status:
Offline
Well, there are plenty of free print-to-PDF utilities, and most businesses employ some sort of PDF generator (usually Adobe). We use PDF Creator here, which is, I think, pretty common. If there's a single source for report generation/distribution, there's no issue with deploying utility packages.

The point being, it's a lot easier to gain the capacity to create PDF files (and more beneficial) than it would be to expend effort troubleshooting a formatting problem with a proprietary document type.

chris.
 
     
   
Gender PostTime:12/16/2008 9:13:37 PM Point:0 | Floor# 6
Lv is 1
portrait
Level:
1
Professional point:
71
Experience:
5
Thread:
316
Post:
950
Total online time:
5M
Joined date:
4/28/2007 10:49:00 PM
Last Visit:
12/16/2008 11:39:24 PM
Status:
Offline
Thanks for all the input...

Sorry output has to be read into word. Can't be snapshot or pdf.

I was hoping there might be some magic fix but you've given pretty much the answers I expected.

Anne- don't think you need to see the differences because you appear to understand the problem exactly... A random phrase in the middle of the page comes out wider in Word that it was in the report and extends past the next tab stop (defined when the report was written as .rtf) and this throws off everything that follows in that line often wrapping the last column into the first tab field on the next line.

I think the solution I'll adopt will be the simplest. I'll define the fields or columns in the report to be narrower than they need to be so that when certain phrases come out wider than expected in Word, they will still not extend past the next tab stop.
 
     
   
Gender PostTime:12/16/2008 10:21:23 PM Point:0 | Floor# 7
Lv is 1
portrait
Level:
1
Professional point:
81
Experience:
32
Thread:
281
Post:
990
Total online time:
32M
Joined date:
4/29/2007 12:22:00 AM
Last Visit:
12/17/2008 12:54:30 AM
Status:
Offline
Chris, you can't "just save as .pdf"
 
     
   
Gender PostTime:12/17/2008 12:14:44 AM Point:0 | Floor# 8
Lv is 1
portrait
Level:
1
Professional point:
0
Experience:
11
Thread:
265
Post:
940
Total online time:
11M
Joined date:
4/28/2007 10:35:00 PM
Last Visit:
12/16/2008 11:40:39 PM
Status:
Offline
That could be tough. We'd really have to see the difference between the two. But, it could be as simple as having you run a macro. See... RTF doesn't hold tables or anything, so you're getting tabs...that kinda sucks. Have you tried Ctrl+A then reducing your font maybe a half point (did you know you can type 11.5 into the font size box?)?
 
     
1

Sorry, you are not login, click here to login

 

About us | Advertise | Contact us | Partner | Bug Report|Suggesting box|Donation
Home | Forum | Affiliate program| Remote help | Setting | Search | Document | Help | Download|Message

 

Start new topicAdvanced search
Your location: Database -> Access