954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Data Base format in dotnet

Hi.
I have retrieve my data from excel files to a vb richtextbox but the text with boldness,italics or sup/sub-scripts format are not proper is their any
way i can retrieve richtext(text having boldness,italics or sup/sub-scripts) on vb form ???

virus220
Newbie Poster
14 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 
Hi. I have retrieve my data from excel files to a vb richtextbox but the text with boldness,italics or sup/sub-scripts format are not proper is their any way i can retrieve richtext(text having boldness,italics or sup/sub-scripts) on vb form ???

are you using webform, or windows forms?

atal
Newbie Poster
24 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

actually right now i ready to work with any of the forms i just want it to work pls reply??

virus220
Newbie Poster
14 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 
actually right now i ready to work with any of the forms i just want it to work pls reply??

you should add HTML tags to your text in order to display the formatted text in a Webform:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class InsertRecord : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strVar = "Hello World";
Label1.Text = strVar.ToString();
Response.Write(strVar.ToString());
}
}

Regards,
Khaled

atal
Newbie Poster
24 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

You mean from a RichTextbox control (or whatever the name is)? There should be a RichText (or similar) property, which will give you the contents with formatting codes still included (as opposed to the Text property, which is just the plaintext). Converting that to HTML will probably require another function, which someone might have put on the Internet somewhere...

Infarction
Posting Virtuoso
1,580 posts since May 2006
Reputation Points: 683
Solved Threads: 53
 

Can someone give me that code to convert excel to HTML plz

virus220
Newbie Poster
14 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You