Solved

Access report export:  colors lost in HTML (and Word)

Posted on 2004-10-13
8
645 Views
Last Modified: 2008-02-01
I have an Access2000 report with some colored text (the coloring is added via conditional formatting of a text box).  When I export the report to an HTML file, the colors are lost and the text comes out black.  How can I make the colors show up without post-processing the resulting HTML file?    Or, if it must be post-processed, any hints for how to do that would be appreciated (I've been trying to avoid VB/VBA in this project for a variety of reasons, but I'll bite the bullet if I have to in order to work around this "feature").

Using a different output format (e.g. PDF) is not an option for this appliacation; it has to be HTML (I tried using Word as an intermediate format, but the colors are lost when going to Word also, and it has other bad features as an intermediate format in this case anyway).

Thanks in advance for your help.
0
Comment
Question by:scottvandenberg
  • 3
  • 3
  • 2
8 Comments
 
LVL 4

Accepted Solution

by:
Gal_atea earned 400 total points
ID: 12298814
I know you said that PDF was not an option, but what about using it as an intermediary instead of Word. As far as I know, when you Export none of the conditional or via code formats are kept, however if you print to PDF the formats are kept, and Acrobat has an option for save as HTML.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 12299709
Here's one link you look at, though I'm not sure it relates directly to your problem:

http://support.microsoft.com/default.aspx?scid=kb;en-us;209145

The article implies that a large part of report formatting will not carry over to an export.
0
 

Author Comment

by:scottvandenberg
ID: 12301945
Thanks for the suggestions so far.

Gal_atea, I just tried exporting (actually, you have to "print" it to a file) to PDF 6.0, then from PDF the "save as HTML" option.  Colors are preserved (this is good -- thanks for the suggestion!), but nearly all the formatting was lost (this is not good!).  To be perfectly clear:  the formatting was preserved in the translation from report to PDF, but lost in the translation from PDF to HTML.   I may have to just export it to HTML from Access and edit the HTML files to put the colors back in.  

Is this just how Adobe's HTML translator "works"?  Their documentation says little, but it seems like shabby behavior for software that isn't cheap.

If anyone can make further suggestions, I'd be grateful.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 12302315
Another option would be to create an ASP-style routine in VB to export the report manually.  Granted, this would be mega-coding, but you'd only have to do it once.  :)
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 4

Expert Comment

by:Gal_atea
ID: 12305885
Yeah, I guess Acrobat isn't designed to export to HTML, but to print, so it's probably an Acrobat issue. Sorry it's not going to work for you.
0
 

Author Comment

by:scottvandenberg
ID: 12320748
OK, so it seems like the proper solution to my question is to conver to PDF from Access, as suggested by Gal_atea (assuming one has Acrobat installed).  But to get it from PDF to HTML, Acrobat's PDF-to-HTML translation loses nearly all formatting and it looks horrible.  So instead, I tried a shareware (I think) program called PDF2HTML (from "verypdf.com"), and that preserved both color and formatting when translating PDF to HTML.

So, unless I hear other better ideas soon, I'd like to Accept the first half of Gal_atea's solution, but replace the second half with "get a real PDF to HTML converter instead of Adobe's".  This is my first post to this forum -- any suggestions how to accept part of a solution?  Should I split the points between Gal_atea and me?

Thanks again; I will wait until sometime next week to close this out.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 12321079
I'd say award to Gal_atea since her solution led you to a workable method.  Your part of the answer will still be stored with the PAQ, so others who see it will know what happened.  If you would like to reduce the amount of points awarded for this question, you will need to post a request in the Community Support TA, available at this link:

http://www.experts-exchange.com/Community_Support/

If you would like to review the guidelines for grading and closing questions, here's the direct link to the appropriate help section.  Remove the "#hs5" if you want to see all the help topics.

http://www.experts-exchange.com/help.jsp#hs5

Good luck with the rest of your project!
0
 
LVL 4

Expert Comment

by:Gal_atea
ID: 12502162
Thanks for the points, scottvandenberg.

Gal_atea
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now