text

Convert Memo to Text

Exact Duplicate of : http://stackoverflow.com/questions/1112954/convert-memo-to-text Hello, I've got an msaccess database which have been created in MS Access 97. I only have access 2003 and 2008 in my computer. so I've converted the database into access 2003 format. The problem I have is that I have a table named 'tblItms_F001' in...

How do I put some formatted text into the Clipboard?

I'm writing a unit test for a "Text Scrubber" utility that will remove any formatting, etc. from the text on the clipboard. For example, if you copy some text from a Word document or a web page with tons of formatting, you may want to paste it into another Word DOC as normal, plain old text. To write a unit test for this, I need, of co...

Copying text from a textbox in C++

Specifically, a program is running and I want to extract the text from a text box inside the program. Generally, what methods/topics should I be using to "get inside" another .exe running on my system and extract data from a text box inside it using C++? I just want a pointer towards the way in which I might achieve this. Thanks. ...

Running a function when the content of yui rte is changed

Hello, I'm currently using the Rich Text Editor from the YUI framework. But I don't know how I can run a function when the content of the editor has changed. Want to do this to give the user a message if they leave the site and there is unsaved changes. Any idea anyone? :) ...

LingPipe Text Processing API

Hello to everyone. This is a question only to those who already used the LingPipe. My question is how to load up the GENIA corpus for Part of Speech tagging. When I start parsing it I get an error saying that I got out of memory heap. Thnx. ...

Handling \n in LineBreakMeasurer

There are thousand articles how to use LineBreakMeasurer to draw multi-line text but there is none about drawing multi-line text taking into account also \n(when you want to force a new line at a specific position in text and not only when the right - or left - margin ends). The secret seems to lie in BreakIterator, but I couldn't find ...

How to get rid of special characters in a text file? (*nix)

I've got a source code file, that started as a copy of some sample code from a webpage. It was created and edited under Windows and compiled with no problems. But under Mac's I get a load of obscure errors, like: ../MyProgram.cpp:1: error: stray '\255' in program ../MyProgram.cpp:1: error: stray '\254' in program ../MyProgram.cpp:1: er...

Unexpected results with C# recursion method

I've got a fairly simple method which recursively removes begining/ending html tags class Program { static void Main(string[] args) { string s = FixHtml("<div><p>this is a <strong>test</strong></p></div>"); Console.WriteLine(s); } private static string FixHtml(string s) ...

How to add image and text together in iPhone Navigation bar

any help i am truly appreciated it Thanks ...

What is quicker, writing text to a file or converting to bytes and writing it to a file?

I have a requirement to write HTML to the file system and I was wondering if there is any speed boost in converting it to bytes and writing it using a FileStream rather than using the File.WriteAllText() (or a similar text method). ...

Draw2D figure with get position at offset

Hello. I am looking for a way to get the position coordinates for an offset of a Draw2D TextFlow. For example SWT's StyledText supports that directly (getLocationAtOffset), but none of the Draw2D text figures supports this. Any ideas how I could calculate the position with the given methods of TextFlow? Regards, Kai ...

HTML link to a certain point in a webpage - slight twist

Hi all, Here's the use case: A user clicks on a link that opens a window displaying the contents of a text log. Easy enough. But is there a way of using POST, to open that text log to a certain location (i.e., search for a particular timestamp given in the post, and show the file at that specific location)? (Assume I can't put ht...

Is storing URL-encoded text in the database a good idea?

I need to store (possibly long) text in a MySQL database. The text may contain special characters and non-latin letters and it should be possible to perform full-text-search on it. MySQL 5 can't store such characters (but it will be possible in MySQL 6), so I though about URL-encoding the text before storing it and decoding it after fetc...

Does openGL ES have trouble displaying text?

Someone told me that openGL is for graphic only, and that it's very bad at displaying good readable text. Is that true for openGL ES on iPhone OS? ...

How can you find the height of text on an HTML canvas?

The spec has a context.measureText(text) function that will tell you how much width it would require to print that text, but I can't find a way to find out how tall it is. I know it's based on the font, but I don't know to convert a font string to a text height. ...

Full text catalog population always in progress, never actually populated

Hi, I have created a full text index on my dev server on a view that returns few rows. The population schedule is currently set to run once a day. However the full text index is returning no results as though it is not populated. If I run SELECT FULLTEXTCATALOGPROPERTY('My Catalog', 'PopulateStatus'), the result is always 1, indicatin...

Wrap text in xml into element tags in Linq to Xml

I need to wrap up all the text thats in a large XElement tree, into Elements. For example: <element1>hello<element2>there</element2>my friend</element1> Becomes <element1><text value=”hello”/><element2><text value=”there”/></element2><text value=”my friend”/></element1> ...

SqlDataReader only returns first select in SqlCommand

Hi, I'm using a SqlCommand to execute a sql statement on a SqlServer2005 db. ( I also tried DbCommand.) If I execute this sql in SQL Server Management Studio, I can send the "Results to Text". I would like to capture this text in my C# code. This and this are related questions, but not the same: My sql contains, next to print stateme...

How can I extract text from a PDF file in Perl?

I am trying to extract text from PDF files using Perl. I have been using pdftotext.exe from command line (i.e using Perl system function) for extracting text from PDF files, this method works fine. The problem is that we have symbols like , and other special characters in the PDF files which are not being displayed in the generated txt...

.Net Winforms/WPF Editor that generate HTML

Looking and .Net Rich Editor that generates HTML, it is important to be capable of handling Tables, merging Cells among other table stuff. ...