473,791 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show HTML Message

Hi and good evening.

I need to show with Lebans RichTextBox a Mime decoded Message.

I build an Mail Receiver, with MIME conversion.
To show Html Message i think that it's need to rtf tranlation HTML--->RTF

Any one have suggestion for this or some code that show how to...?

Thanks for any idea.
--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #1
8 2875
The simplest method to transform RTF to HTML is to simply use the
Clipboard. THere are functions on my site to allow you to copy RTF to
the Clipboard. You could modify them to copy from the Clipboard back to
HTML.
http://www.lebans.com/copygetrtffromclipboard.htm

Another solution is to use the mini HTML editor on my site.
http://www.lebans.com/htmleditor.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:co******** **@lacerta.tisc alinet.it...
Hi and good evening.

I need to show with Lebans RichTextBox a Mime decoded Message.

I build an Mail Receiver, with MIME conversion.
To show Html Message i think that it's need to rtf tranlation HTML--->RTF
Any one have suggestion for this or some code that show how to...?

Thanks for any idea.
--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------- ----- http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------- -----


Nov 13 '05 #2
"Stephen Lebans" <Fo************ *************** *************@l invalid.com>
ha scritto nel messaggio
news:l5******** **************@ ursa-nb00s0.nbnet.nb .ca...
The simplest method to transform RTF to HTML is to simply use the
Clipboard. THere are functions on my site to allow you to copy RTF to
the Clipboard. You could modify them to copy from the Clipboard back to
HTML.
http://www.lebans.com/copygetrtffromclipboard.htm

Another solution is to use the mini HTML editor on my site.
http://www.lebans.com/htmleditor.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

Thanks so much... i'll try immediatly....!

Always best suggestion....!

Bye
--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #3
"Stephen Lebans" <Fo************ *************** *************@l invalid.com>
ha scritto nel messaggio
news:l5******** **************@ ursa-nb00s0.nbnet.nb .ca...
The simplest method to transform RTF to HTML is to simply use the
Clipboard. THere are functions on my site to allow you to copy RTF to
the Clipboard. You could modify them to copy from the Clipboard back to
HTML.
http://www.lebans.com/copygetrtffromclipboard.htm

Another solution is to use the mini HTML editor on my site.
http://www.lebans.com/htmleditor.htm

I use your suggestion, but i can use this one to send HTML(Mail) only if
i have an HTML editor...., or Web Browser Control(i can't use it)....!

I explain you better my problem, with my bad english....!

I have 2 problem to understand:
1)View a received Mail Message, so on Decoding Mime Message i have an HTML
Formatted string
as Body Message, and i will put it into Your RichText ocx
If i copy on ClipBoard my HTML string and Paste on RichControl, i view a
correct Formatted Text...?
If no can you explain me how to do it...?

2)I use also RichText to write Message Body part on Sending Mail.
This second one is the solution you give me on your replay.... but when
i send mail i need html formatted string, and i have not any other ocx
control to use,
so i have some difficulties to understand the right way....!

Thanks again
--
(Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #4
OK so you cannot, for whatever reason, use the MS WebBrowser control.

So go the Clipboard route I pointed you to.
When you put RTF or HTML onto the ClipBoard you can request either/both
formats and the Clipboard object will perform the translation for you.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:co******** **@lacerta.tisc alinet.it...
"Stephen Lebans" <Fo************ *************** *************@l invalid.com> ha scritto nel messaggio
news:l5******** **************@ ursa-nb00s0.nbnet.nb .ca...
The simplest method to transform RTF to HTML is to simply use the
Clipboard. THere are functions on my site to allow you to copy RTF to the Clipboard. You could modify them to copy from the Clipboard back to HTML.
http://www.lebans.com/copygetrtffromclipboard.htm

Another solution is to use the mini HTML editor on my site.
http://www.lebans.com/htmleditor.htm

I use your suggestion, but i can use this one to send HTML(Mail) only

if i have an HTML editor...., or Web Browser Control(i can't use it)....!

I explain you better my problem, with my bad english....!

I have 2 problem to understand:
1)View a received Mail Message, so on Decoding Mime Message i have an HTML Formatted string
as Body Message, and i will put it into Your RichText ocx
If i copy on ClipBoard my HTML string and Paste on RichControl, i view a correct Formatted Text...?
If no can you explain me how to do it...?

2)I use also RichText to write Message Body part on Sending Mail.
This second one is the solution you give me on your replay.... but when i send mail i need html formatted string, and i have not any other ocx
control to use,
so i have some difficulties to understand the right way....!

Thanks again
--
(Alessandro Baraldi)
---------------------------------------------------------------------- ----- http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------- -----


Nov 13 '05 #5
"Stephen Lebans" <Fo************ *************** *************@l invalid.com>
ha scritto nel messaggio
news:N8******** **************@ ursa-nb00s0.nbnet.nb .ca...
OK so you cannot, for whatever reason, use the MS WebBrowser control.

So go the Clipboard route I pointed you to.
When you put RTF or HTML onto the ClipBoard you can request either/both
formats and the Clipboard object will perform the translation for you.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


USE WEB BROWSER:
I'm not sure of being able to use it for reasons of Licence.
I do not have to distribute, but only use it for my Sample.
'---------------------------------------------------------------------------
-----------
The Clipboard sistem is very good, but i have some truble...:

From your Sample "CopyGetRTFfrom Clipboard"

You added functionality to Copy/Get RTF from the Clipboard

CF_RTF = RegisterClipboa rdFormat(RTF)
Where RTF = "Rich Text Format"

i suppose to need the same things for HTML and use it on:

hClipMemory = SetClipboardDat a(CF_HTML, hGlobalMemory)

To copy my Text on Clipboard, and than Past on RTF format
on your Richtext control....!

And for reverse function the same reverse things....!!!!

True...?

If treu can you help me to understand how to implements HTML
functionality.. ?

Thank you very much.

--
(Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #6
You do not have to distribute the MS WebBrowser control if the user has
a current version of MS Internet Explorer installed on their system.

THe answers to your otyher questions are yes, yes and yes.<grin>
You are following the correct logic in using the Clipboard object to
perform the trnaslation from HTML->RTF and vice versa.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:co******** **@lacerta.tisc alinet.it...
"Stephen Lebans" <Fo************ *************** *************@l invalid.com> ha scritto nel messaggio
news:N8******** **************@ ursa-nb00s0.nbnet.nb .ca...
OK so you cannot, for whatever reason, use the MS WebBrowser control.
So go the Clipboard route I pointed you to.
When you put RTF or HTML onto the ClipBoard you can request either/both formats and the Clipboard object will perform the translation for you.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
USE WEB BROWSER:
I'm not sure of being able to use it for reasons of Licence.
I do not have to distribute, but only use it for my Sample.

'-----------------------------------------------------------------------
---- -----------
The Clipboard sistem is very good, but i have some truble...:

From your Sample "CopyGetRTFfrom Clipboard"

You added functionality to Copy/Get RTF from the Clipboard

CF_RTF = RegisterClipboa rdFormat(RTF)
Where RTF = "Rich Text Format"

i suppose to need the same things for HTML and use it on:

hClipMemory = SetClipboardDat a(CF_HTML, hGlobalMemory)

To copy my Text on Clipboard, and than Past on RTF format
on your Richtext control....!

And for reverse function the same reverse things....!!!!

True...?

If treu can you help me to understand how to implements HTML
functionality.. ?

Thank you very much.

--
(Alessandro Baraldi)
---------------------------------------------------------------------- ----- http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------- -----


Nov 13 '05 #7
"Stephen Lebans" <ForEmailGotoMy .WebSite.-WWWdotlebansdot com@linvali>
wrote in message news:qf******** **************@ ursa-nb00s0.nbnet.nb .ca
You do not have to distribute the MS WebBrowser control if the user has
a current version of MS Internet Explorer installed on their system.
This is a good reason to use your HTML editor...! ;-)
THe answers to your otyher questions are yes, yes and yes.<grin>
You are following the correct logic in using the Clipboard object to
perform the trnaslation from HTML->RTF and vice versa.
Perfect, now for my experience i'll try to do it also with this
method...!
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Hi Stephen and thanks a lot.
Alessandro
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Nov 13 '05 #8
I'm here again, sorry but i've some trubles

USING:
CopyGetRTFfromC lipboard

I modify your function ClipBoard_GetRT FText on ClipBoard_GetHT MLText
changing

I add:
CF_HTML = RegisterClipboa rdFormat("HTML Format")

So i put on ClipBoard RTF content of RichText on cmdCopy_Click()
absolutly i use your code.
After puting on ClipBoard a callback form ClipBoard using this function
below that i modify to return HTML.

I can't have nothing back, i'm sure i've make a very big Mistake, but
i don't know where can be.....!!!

Function ClipBoard_GetHT MLText() As String
Dim hClipMemory As Long
Dim lpClipMemory As Long
Dim strCBText As String
Dim RetVal As Long
Dim lngSize As Long
If OpenClipboard(0 &) <> 0 Then
' Obtain the handle to the global memory
' block that is referencing the text.
hClipMemory = GetClipboardDat a(CF_HTML)
If hClipMemory <> 0 Then
' Lock Clipboard memory so we can reference
' the actual data string.
lpClipMemory = GlobalLock(hCli pMemory)
If lpClipMemory <> 0 Then
lngSize = GlobalSize(lpCl ipMemory)
strCBText = Space$(lngSize)
RetVal = lstrcpy(strCBTe xt, lpClipMemory)
RetVal = GlobalUnlock(hC lipMemory)
' Peel off the null terminating character.
strCBText = Left(strCBText, InStr(1, strCBText, Chr$(0), 0) - 1)
Else
MsgBox "Could not lock memory to copy string from."
End If
End If
Call CloseClipboard
End If
ClipBoard_GetHT MLText= strCBText
End Function
One more time Tanks.
--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3483
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing appeared on my news server, so I'm trying again - this time posting a separate copy of the message to each group. I'm thinking this should be fairly easy to accomplish - a quick and dirty ... what? ... script? program?
77
5696
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a database from SQL Server to Oracle or DB2 or vice versa... and that's it.... And a lot of these enterprises don't need it as they already know what database they are going to use and they don't plan on switching in and out database in the first...
6
3536
by: bayram guzer | last post by:
hi everybody, i have very strange error. i can not see some of the asp pages on my browser. when i look from view source, all the source is there but browser does not show anything, just an empty page. Does anybody have idea about this ?
13
3048
by: | last post by:
Although this question does not belong in here, I hope someone help, as I do not know where to send it, but someone here might have come acros similar problem: Some of JPG files sitting in the same folder show up OK on an HTML page, while the other do not as if they are not there or their name is misspelt. Tried low-upper case in an ASP page, and in the files names - same result Then I noticed that the same files do not show up in the...
12
15679
by: Jerad Rose | last post by:
I searched for a while trying to find the answer to this, but to no avail. I am trying to find the best way (or any way) to dynamically show and hide groups of TR's. For example, I have a section of about 6 table rows that all need to be hidden if a certain condition is met. But I don't want to hide the whole table. And, I don't want to split up the table because the columns need to remain intact. I thought about using runat=server...
2
2700
by: J Sahoo | last post by:
Hi, I have a browse page where I am showing few fields from my SQL Server table. One of the field is Image type, all the fields are bound to a single table. I want to show the image from the table on this browse along with the other fields. Here is the code what I have from the HTML view, I am using a datagrid to show the result. It does not show the image rather it shows "System.Byte " on the output. I did not have any code behind...
7
2539
by: Steve Kallal | last post by:
I have seen this subject tossed around in this forum before. But in my case I need a simple solution. I do NOT need to show progress in terms on percentage complete. But rather I need to show a visual indicator to the user that a process is running. There are two scenarios where I need to show a busy indicator: Scenario #: The first is when posting to the web server and waiting for a response.
4
10606
by: bnob | last post by:
In a Button clik event I have this code at the end of the event Response.Redirect("Page.aspx") But in this event I must show a message before redirect to the Page.aspx. I use to show Message this System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=""JavaScript"">" & vbCrLf) System.Web.HttpContext.Current.Response.Write("alert('A message')" &
4
2117
by: Mike | last post by:
I encountered this problem for the first time today while trying to add some columns to a query from a linked DBASEIII file. The new columns that I added on the design grid do not show up on the data sheet, even though the box is checked. I've already done some trouble shooting, making sure the box is checked, making sure that the columns aren't hidden. Also, I went to the toolbar menu, under tools and then options, and checked the...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.