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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exporting reports from Access

Status
Not open for further replies.

Genie78

MIS
Aug 11, 2008
18
GB
Hi there i have an access 2003 database, which has several reports built into it.

I know want to export them but keep them in the format that is on screen

The report has a lot of formatted text fields in Boxes and my customer wants to keep that format no matter what.

I have said they could use a pdf writer or even the MDI file type but these were rejected.

The other Thought i had was a mail erge type idea, where the database would export the raw data and then a mail merge would then be ran from that, i think this maybe a bit tedious and not overly reliable... any suggestion?
 
You can output reports in snapshot or rtf format. Snapshot preserves the formatting very well, but you need a snapshot viewer, rtf is not so neat, but can be opened in Word. What did you want to do with the report once it was output?
 
i want to email it, I have tried the snapshot option but you then have to have that file type installed on the other persons PC.
 
Ah it is the text version, you loose the formatting when it is rich text
 
I found that last sentence a little obscure. Can you expand on it? :)
 
sorry the formatting of the report is almost as critical as the data that it shows, so rich text format does not keep the boxes and all the data looks mashed together.
 
Then you do not have much choice that I can see:

- Mailmerge
- PDF
- Snapshot
- Build-your-own HTML.

That's it, I think.
 
- Build-your-own HTML.


Whats this? is this where you "output to
 
As an aside, why was PDF shot down? Perhaps it is time to do a little laying-down of the facts. "If you want this, this and this, you either must have PDF or allow me <insert time here> to build and develop suitable CSS and HTML for output.
 
I have gone down the PDF route with them but they are completly unwilling to pay for the licence.
 
Drat, cross-post.

To build your own HTML, you would cycle through the recordset and apply suitable tags to each output field in order to create the layout you want. The output is to a text file with a HTML extension. You must also note that many people have email set-ups that disallow HTML. PDF used to be safe for email until fairly recently, but that too is now blocked by a number of companies. It is getting to the point that the only way you can be certain your mail will not be blocked for content, is to use plain text.

Back to HTML output, just to give you a very rough idea:

[tt]For each fld In rs.Fields

Select Case fld.Name
Case "Blah"
ln="<p style='s1'>" & fld & "<p>"[/tt]
 
Ah, ha! There is no need to pay for a license. Look at PDFCreator and CutePDF. I use PDFCreator.
 
our web team are also retentive and will not allow us to download any third party products
 
Office 2007 has a free MS plugin for PDF creation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top