944,191 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1979
  • ASP.NET RSS
Aug 9th, 2007
0

Data Base format in dotnet

Expand Post »
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 ???
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
virus220 is offline Offline
14 posts
since Aug 2007
Aug 11th, 2007
0

Re: Data Base format in dotnet

Click to Expand / Collapse  Quote originally posted by virus220 ...
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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
atal is offline Offline
24 posts
since Jul 2007
Aug 11th, 2007
0

Re: Data Base format in dotnet

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

Re: Data Base format in dotnet

Click to Expand / Collapse  Quote originally posted by virus220 ...
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 = "<b>Hello <sup>World</sup></b>";
Label1.Text = strVar.ToString();
Response.Write(strVar.ToString());
}
}

Regards,
Khaled
Reputation Points: 10
Solved Threads: 0
Newbie Poster
atal is offline Offline
24 posts
since Jul 2007
Aug 12th, 2007
0

Re: Data Base format in dotnet

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...
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Aug 12th, 2007
0

Re: Data Base format in dotnet

Can someone give me that code to convert excel to HTML plz
Reputation Points: 10
Solved Threads: 0
Newbie Poster
virus220 is offline Offline
14 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: asp.net
Next Thread in ASP.NET Forum Timeline: Excel macros with asp.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC