Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

panoskatws

@panoskatws
About
Posts
18
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reading ms Word table of contents with c#
    P panoskatws

    Hallo, I'm looking for a way to read the table of contents of an ms word document and load it in a richtextbox, with c# and visual studio 2005. Is there a way to make it linkable (if someone klicks on it, it takes you to the specific page)??? If it's not possible with a richtextbox, is there any other tool that can do it?? Thanks!!

    C#

  • webBrowser reading ms word docs
    P panoskatws

    Hallo all, I'm using c# and visual studio 05 and I'm rendering in a webBrowser control to render .doc, .xml and mht documents( all from ms word). So the browser shows the document allong with ms word's tools, like coment inserting etc... Is there way to control the document. For example, can I apeear only the first page of the document (some kind of paging)? Also can I get the table of contents and table of figures of the document? Thanks!!

    C# csharp visual-studio tools xml tutorial

  • How to use rtf table of contents in RichTextBox
    P panoskatws

    Hallo all, I'm using c# to load an rtf file in a richTextBox but I have a problem when the file includes table of contents (TOC). The TOC appears as plain text, while in ms word it has blue fore color, and if you press it (in ms word "control button and click") it does not respond at all. Is there a way to use the TOC in richTextBox?? Thanks!!

    C# csharp help tutorial question

  • Can't remove the last row from datagridview
    P panoskatws

    Have you selected the property "AllowUserToAddRow" of the datagridview to false?

    C# help database sql-server sysadmin tutorial

  • richTextBox and rtf problem
    P panoskatws

    Hello all, I'm having some trouble with richTextBox. Using c# in Visual Studio 05. What I do first is to copy the control code ({\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard) in a string, and then the text I need from an rtf file (\f0This is some {\b bold} text.\par) in another string and combine them, I do this for loading specific lines of the file... Anyway, the problem is that when I load this in a richTextBox (rtb.Rtf = myString;), I noticed that the control code is changed. For example if the control code cotains code for 5 fontsyles in its fontable ({\f0\fnil\fcharset161 Microsoft Sans Serif;}{\f1\fnil\fcharset0 Tahoma;}{\f2\fnil\fcharset0 Arial;}{\f3\fnil\fcharset0 Arial Black;}{\f4\fnil\fcharset0 Arial Narrow;}), if the text uses only 3 of them the rest two are not included in the control code of the richTextBox ({\f0\fnil\fcharset0 Tahoma;}{\f1\fnil\fcharset0 Arial Black;}{\f2\fnil\fcharset0 Arial Narrow;}). I hope you understand what my problem is. Is there a way of avoiding this to happen, or, if not, how can I control this so when I need to make some changes in the fontstyle of the text, the file will be updated with no mistakes (like f1 is "Tahoma" and not "Arial Black")?

    C# csharp question visual-studio json help

  • Full screen size application
    P panoskatws

    Hello!! How can I make an applications size to full screen? Thanks!

    C# question

  • form or buttons in rtf [modified]
    P panoskatws

    Hi all!! Is there a way to use forms with buttons in rtf files?? Or, does richTextBox supports buttons, like ms word? If I am not clear, I know that in ms word you can create sosmething like a form with command buttons and everything, and I want to use this kind of ability in an editor I am trying to make. And these 2 are the only things I can imagine to accomplish this. Any suggestions?? Thanks all!!!!

    modified on Thursday, April 24, 2008 8:19 AM

    C# question

  • insert images in rtf file
    P panoskatws

    Hello!! I have been googling to find a way to add an image in an rtf document, and all I've found up to now is by converting the image in a hexadecimal string... and I realy can't understant anything... Does any one know if there is a simplier way for this, something like we use in old good html like img src and filepath? Thanks!!!

    C# html question

  • rtf and streams
    P panoskatws

    Hey, thanks for the reply! I thought that readline isn't suitable and that I have to create a method for this. But don't know how... The method should be able to read from a stream in whitch the formated text of the rtf file is loaded and detect \par. For the problems you mentioned I believe I have to live with them... Could you help me out here??

    C# tutorial question

  • rtf and streams
    P panoskatws

    Hey rick, I don't want to cause any trouble to you... Anyway, "\par" is a linebreak like "
    " in html. Rich Text Format uses the backslash to start it's control code instead of tags<>. So I have to detect where "\par" is in the document. I believe that this is the only way to read a formated document line by line. I hope you understand... Any ideas if it's no trouble??? Thanks!!!!

    C# tutorial question

  • rtf and streams
    P panoskatws

    Thank you Rick but I still have a problem. I tryied out the second way you suggested, and it seems like it is counting the exact lines of the text file and not where "\par" is...I hope you understand what I'm trying to say... So I believe that I have to check where "\par" is in the stream and then increase the counter. Any suggestions??

    C# tutorial question

  • rtf and streams
    P panoskatws

    Hello!! I have managed to load an rtf file in a streamreader : "StreamReader sr = new StreamReader("C:\\test.rtf");" and display it in a richtextbox: "richTextBox1.Rtf = sr.ReadLine();" Is there any way that I could posibly "read" each ,lets say, 10 lines? I suppose I could detect where this "\par" appears in the stream but don't know how to do it... Any suggestions??? Does the readline method have any operation for this? Thanks!!

    C# tutorial question

  • rtf files and pagebreaks
    P panoskatws

    I'm not shure if I am able of writting down my own parser. Also I tryied out the library you suggested, but could not use it. I imported the dll file and still din't manage it. I'm new in programming and have not enough experience. Could you please help me out here??

    C# tutorial csharp question

  • Interesting problem with XML nodes
    P panoskatws

    You could use richTextBox to view the text. Then you can use some of the controls of this richTextBox to get the current position or better the selected text and add your tag in the begginig of the selection and the close tag at the end of the selection, and save it.

    C# help regex xml tutorial question

  • rtf files and pagebreaks
    P panoskatws

    Hello all!! What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak... Thank you!!

    C# tutorial csharp question

  • Count lines in rtf files with c# [modified]
    P panoskatws

    It's working fine, but I have a problem with displaying the text formated from a string variable. For example if |I have a string with the following text :"{\rtf1ansi\ansicpg1253\deff0\deflang1032{\fonttbl{\f0\fnil Arial;}}{\colortbl\red0\green0\blue0 ;\red240\green248\blue255 ;}\viewkind4\uc1\pard\cf0\fs40\f0\b\ul Title\par\par\fs24\b0\ul0 This is a test.\cf1 This is a text.\par\par}" how can I display the text formated, without having to figure out all the special characters? Is there any method or function that I can use in visual studio 05?

    C# csharp question

  • Count lines in rtf files with c# [modified]
    P panoskatws

    Well about libraries I haven't found anything that I can use. So I must create my own piece of code that counts lines and takes specific parts of formated text and display it in a RichTextBox, formated... That is an other problem I have, don't know how to display a part of formated text without loosing the styling(fonts, colors etc.). All special characters are displayed with the text (/n ...). So I understand that I must learn about the rtf file format. Does anyone know the basics that are needed, or any suggestions??? Thanks!!!

    C# csharp question

  • Count lines in rtf files with c# [modified]
    P panoskatws

    Hi all, I am trying to find a way to count lines in an rtf file, so I could later create a kind of paging. I am using c#, also is there a way to show a string that includes format characters (such as "/par" in rtf) in a richTextBox? Thanks!!! Panos

    modified on Thursday, March 13, 2008 1:59 PM

    C# csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups