could you provide the that file with table ?
On Fri, Mar 20, 2009 at 1:41 PM, Shraddha rashinkar <
[email protected]> wrote:
> Yes, I am doing same.
>
>
> Sub DisplayHelpFile()
>
> Dim tFile As String = "E:\Shraddha\hello.rtf"
>
> If Len(Dir("E:\Shraddha\hello.rtf")) > 0 Then
>
> RichTextBox1.LoadFile(tFile, RichTextBoxStreamType.RichText)
>
> RichTextBox1.RightMargin = 0
>
> Else
>
> RichTextBox1.Text =
> "E:\Shraddha\hello.rtf file not found..."
>
> End If
>
> End Sub
> Regards, Shra
>
> On Fri, Mar 20, 2009 at 5:46 AM, WildStrawberry <
> [email protected]> wrote:
>
>>
>> Have you tried load rtf file with the following method:
>> RichTextBox.LoadFile(String path, RichTextBoxStreamType fileType),
>> trying different fileTypes (from enum)? Because as far as I remember
>> there are some types of rft file (had some problem with that a few
>> years ago).
>>
>> Grzegorz G.
>>
>> On Mar 18, 2:27 pm, Shraddha rashinkar <[email protected]>
>> wrote:
>> > Thanks for reply!!
>> >
>> > I dont want to deliberatily change the font. I just want it to display
>> the
>> > file contains as it is.
>> >
>> > On Mon, Mar 16, 2009 at 10:55 AM, Achu <[email protected]>
>> wrote:
>> >
>> > > Hi Shrassha,
>> >
>> > > I too faced the similar problem as yours. And finally I could find out
>> > > that the format not displaying properly was due to the font set being
>> > > different in the text file and the rich text box control. So by making
>> > > the font of both same I was able to solve my issue. You can check
>> > > this out by just changing the font of the text file by opeing in a
>> > > notepad . The format will change as you change the font there also....
>> >
>> > > Hope this will help u to solve the issue!!!!
>> >
>> > > Regards,
>> > > Achu
>> >
>> > > On Mar 13, 10:30 am, Shraddha rashinkar <[email protected]
>> >
>> > > wrote:
>> > > > Thanks!!!
>> >
>> > > > But the format is not displayed properly. Am I missing something..?
>> >
>> > > > On Fri, Mar 13, 2009 at 9:42 AM, santhosh vs <[email protected]
>> >
>> > > wrote:
>> > > > > Rich Text Box is the only control you have with Windows Forms. You
>> may
>> > > > > use Google to search for third party controls, but most of them
>> req.
>> > > > > purchase.
>> >
>> > > > > On Thu, Mar 12, 2009 at 5:54 PM, shra <
>> [email protected]
>> > > >wrote:
>> >
>> > > > >> Hi,
>> >
>> > > > >> Can someone please help me as I am new to vb.net.
>> >
>> > > > >> I want to display a rtf file on the windows form in vb.net.
>> >
>> > > > >> Is there any other control than rich text box with which I can
>> display
>> > > > >> the file contains?
>> >
>> > > > >> When I open the file in rich text box then there is some problem
>> with
>> > > > >> format. It does not display table format as it is.
>> >
>> > > > >> Thanks in advance!!!
>> > > > >> Shra
>> >
>> > > > > --
>> > > > > My Web Site
>> > > > >http://everlovingyouth.googlepages.com
>> > > > > My Technical Blog
>> > > > >http://acutedeveloper.blogspot.com
>> > > > > Skype :santhoshnta
>> > > > > Orkut :everlovingyouth- Hide quoted text -
>> >
>> > > > - Show quoted text -
>>
>
>
--
My Web Site
http://everlovingyouth.googlepages.com
My Technical Blog
http://acutedeveloper.blogspot.com
Skype :santhoshnta
Orkut :everlovingyouth