Solved

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

Posted on 2004-10-13
8
663 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

23 Experts available now in Live!

Get 1:1 Help Now