RTF files
-
hi i want my application(vb.net mobile application) to read the RTF file i tried myself but it does not work i mean controll is not available in toolbox,is there is any other controll/way to show the RTF files. Tasleem Arif
Unfortunately, Microsoft didn't think it was necessary to include RichTextBox in the .Net CF (not even V2.0). You're going to have to use a custom control (either of your own making, or if someone else has already done the work for you). Since RTF files are just text files with some markup, it's just a matter of reading in the text file and interpreting the RTF codes. Another problem lies with actually displaying the RichText-formatted text. Like I said, since the NCF doesn't have a RichTextBox, you might try using a Graphics object to draw the text to a control (of course, you'd have to draw it one character at a time, but printing RTF to a printer is pretty much the same way). The BIGGEST problem is that you would only be able to DISPLAY the text, not modify it as well. I ran into the same frustration, with a PocketPC app I started a while ago. The most we all can do is either use PocketWord, or cuss at Microsoft for not including the RichTextBox control. -Daniel
-
Unfortunately, Microsoft didn't think it was necessary to include RichTextBox in the .Net CF (not even V2.0). You're going to have to use a custom control (either of your own making, or if someone else has already done the work for you). Since RTF files are just text files with some markup, it's just a matter of reading in the text file and interpreting the RTF codes. Another problem lies with actually displaying the RichText-formatted text. Like I said, since the NCF doesn't have a RichTextBox, you might try using a Graphics object to draw the text to a control (of course, you'd have to draw it one character at a time, but printing RTF to a printer is pretty much the same way). The BIGGEST problem is that you would only be able to DISPLAY the text, not modify it as well. I ran into the same frustration, with a PocketPC app I started a while ago. The most we all can do is either use PocketWord, or cuss at Microsoft for not including the RichTextBox control. -Daniel
-
thanks for ur reply.can u tell me in v 2.0 the "Web browser controll" used to display web pages is also not present. Tasleem Arif
-
I am sharing your frustration. The web browser is included in CF 2.0. For my purposes, however, I don't want to use webBrowser because webBrowser then calls PocketWord and thats not very pretty. I am hoping i can figure out some way to display word type files using the OpenNetCF Inkx control, but I haven't gotten very far with it. Jim