Last post Jun 28, 2008 11:25 PM by closeguy2005
Jun 27, 2008 09:24 AM|closeguy2005|LINK
I am using following code to display word file in text box
Dim wordApp As New Word.ApplicationClass()
Dim nullobj As Object = System.Reflection.Missing.Value
Dim doc As Word.Document = wordApp.Documents.Open(Session("resumepath"))
Dim doc1 As Word.Document = wordApp.ActiveDocument
Dim m_Content As String = doc1.Content.Text
txtresume.Text = m_Content
txtresume.Text = doc1.Content.Text
But , the problem is ,even the bold contents in the word file appear as normal text in text box . I want the content in the word file to appear as it is in text box . how can i do this ???...
( I have set the READONLY property of textbox as true so the textbox doesn't appear purely white ...how to avoid this also ?)
Jun 28, 2008 10:59 AM|Gaucho|LINK
You might be better off using a Label control to display your text as opposed to a Textbox control. You can set the display properties for the Label control in a .CSS file, or in the Properties panel specifically for the Label control.
Jun 28, 2008 02:01 PM|closeguy2005|LINK
Each time i want to display different word file..
How can i do so using stylesheet and label ?
Jun 28, 2008 08:41 PM|Gaucho|LINK
A good intro to stylesheets can be found
Jun 28, 2008 11:25 PM|closeguy2005|LINK
i cannot use stylesheet because stylesheet is used for consistent appearance
i dont want consistent
i want different appearance as per diff word files