473,414 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Displaying fields containing HTML codes

Hi,

I have a field that store HTML codes.

How do I output them to MS Access Report / MS Word in HTML format or text format?

Kindly advise.

Regards,
Clarence
Jan 16 '08 #1
5 6486
Denburt
1,356 Expert 1GB
I am not really sure what you are trying to do. One suggestion is to stream it into a file and name the file whatever.html Or you could set up and xml stylesheet so you can export the data to an xml file and use an HTML page to view it... Lots of possibilities. If you wanted to output just the text that is encased in html tags then that might take a bit of work but could be done by hardcoding each tag that you want removed or look for an open bracket "<" Then the close bracket ">" or something along those lines. I think I will need a little more input before I can make any more suggestions. Thanks hope this helps.
Jan 17 '08 #2
Hi Denburt,

Thanks for your reply.

I would like the output to be formatted text. For example, if the text stored in the table is "</b>TEST</b>", the output text should be a bold TEST.

Preferably, I could output this to a MS Access Report.

Regards,
Clarence

I am not really sure what you are trying to do. One suggestion is to stream it into a file and name the file whatever.html Or you could set up and xml stylesheet so you can export the data to an xml file and use an HTML page to view it... Lots of possibilities. If you wanted to output just the text that is encased in html tags then that might take a bit of work but could be done by hardcoding each tag that you want removed or look for an open bracket "<" Then the close bracket ">" or something along those lines. I think I will need a little more input before I can make any more suggestions. Thanks hope this helps.
Jan 18 '08 #3
Denburt
1,356 Expert 1GB
Hi Denburt,

Thanks for your reply.

I would like the output to be formatted text. For example, if the text stored in the table is "</b>TEST</b>", the output text should be a bold TEST.

Preferably, I could output this to a MS Access Report.

Regards,
Clarence
Well I think I would start in the reports detail section, using the OnFormat event. How good is your VBA? If you code something up and have problems I will be more than glad to help. If you would like some direction I would suggest using the instr() function to locate then remove the "<b>" and "</b>" once this is done then you could format that control to be bold and look for your next tag.
Jan 30 '08 #4
jaxjagfan
254 Expert 100+
Never tried this but ...

Access report will display the content of a field whether it is "<b>my text</b>" or "my text".

If you are creating an HTML doc on the fly based on entries in a table you will need to include the header section and body section. This will need to be exported to a text document. If you have a preformatted template text doc with the header already set then WRITE the other elements to the body and close body. Save as HTML.
Jan 30 '08 #5
I think what you are really asking is how do you show html enhanced code in a text box, not literally show the codes. I had the same problem and finally figured it out. Go to the properties of the box's Data tab. You'll probably see it by now; the Text Format property has to be Rich Text, NOT Plain Text. Seems odd a property with Format in the name is not found on the Format tab...
Aug 8 '18 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Christian Wilcox | last post by:
I'm trying to programmatically access information from a telnet session which is normally accessed with a telnet program capable of terminal emulation (currently set at VT320). The initial login...
6
by: Jennifer Smith | last post by:
I want to be able to display my recordset as follows: a e b f c g d h Instead of : a b c d
4
by: Ray Lavelle | last post by:
I have a field in my database which stores product codes. This field is a varchar. Some users use characters in their codes but most just use numbers. Whenever I go to sort the products by code...
3
by: Jens Kristensen | last post by:
I have a problem displaying a divbox containing a html-textarea - everything works fine with "normal" characters. However, when the textarea contains special chars like <P> or ' , the box fails to...
10
by: Mark McLellan | last post by:
Dear all Following the oft-repeated advice here and ciwas I have made my site nearly 4.01 strict (working on it). There are some items on which I would appreciate your advice: 1. Hidden...
32
by: vonclausowitz | last post by:
Hi All, I have database with names on which I want to use the soundex option. So I have created two seperate fields for the Lastname and Firstname in which I save the Soundex version of a new...
1
by: bimeldip | last post by:
Hi, I've been dabbling with mysql php and xml... I have managed to learn how to upload xml file into mysql datbase and download the file from mysql database to display the content on the file....
5
by: tushar.saxena | last post by:
This post is a follow up to the post at : http://groups.google.com/group/comp.lang.c++/browse_thread/thread/83af6123fa945e8b?hl=ug#9eaa6fab5622424e as my original question was answered there, but I...
7
by: Ned White | last post by:
Is it possible to insert HTML codes to a textbox control ? I am reading HTML formated string from sql server but if i assign this value to Text property of TextBox, the format tags of HTML seems...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.