Hi ,
I would like to use the new richtext component however i notice it does not support text wrapping , anyone knows if it will be implemented sometime ? or is there any way to work arround it ?
Thanks
Hi...!
I downloaded the Apache HWPF. I want to use it to read a doc file and write its text into a plain text file. I don't know the HWPF so well.
My very simple program is here:
I have 3 problems now:
1-Some of packages have errors ( they can't find apache hdf). How I can fix them?
2-How I can use the methods of HWDF to find and extract the images out?
3-Some piece of my program is incomplete and incorrect.So please help me to complete it.
I have to complete this program in 2 days.
once again I repeat Please Please help me to complete this.
Thanks you Guys a lot for your help!!!
This is My Elementary code :
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;
import org.apache.poi.hwpf.model.PicturesTable;
import org.apache.poi.hwpf.usermodel.Picture;
public class test {
public void m1 (){
String filesname = "Hello.doc";
POIFSFileSystem fs = null;
fs = new POIFSFileSystem(new FileInputStream(filesname );
HWPFDocument doc = new HWPFDocument(fs);
WordExtractor we = new WordExtractor(doc);
String str = we.getText() ;
String[] paragraphs = we.getParagraphText();
Picture pic = new Picture(. . .) ;
pic.writeImageContent( . . . ) ;
PicturesTable picTable = new PicturesTable( . . . ) ;
if ( picTable.hasPicture( . . . ) ){
picTable.extractPicture(..., ...);
picTable.getAllPictures() ;
}
}
I have a plain text file with words, which are separated by comma, for example:
word1, word2, word3, word2, word4, word5, word 3, word6, word7, word3
i want to delete the duplicates and to become:
word1, word2, word3, word4, word5, word6, word7
Any Ideas? I think, egrep can help me, but i'm not sure, how to use it exactly....
I have some fun with unicode text sources (all correct encodet) and I want to match names. The classic problem, one source comes correctly, an other has more flatten names:
"Elblag" vs. "Elblag" (see the character a)
How can I "flatten" a, á, â or à to a for better matching? Are there unicode to ascii- matching tables?
HI,
I would like to create a function that beautify my text. For this I use a regex who remplace some characters, but it not run. Can you give me the regular expression for this :
Replace the first letter by a caps
Replace any underscore _ by a space
So for example: the_pack_2 will be The pack 2.
Thx
The idea is rather simple. Some datawindow (not web datawindow) varchar fields contain detailed descriptions. I was wondering if it is possible to provide the following (wikipedia-like) functionality to users: The ability to click (or dbl-click or whatever) on specific words of the text, while reading (which somehow should be indicated as clickable - it would be perfect if they could be colored blue but I don't think this is possible) and open a relevant window (or response). Do you think something like this could be implemented?
Hi there,
I only wanted to know if it's possible to change the style of the font (font-size, color) of the legend text in the Google Chart API.
Thanks for your answers!
Greetings
Sebastian
Hello,
New at C# using visual studio 2008 and trying to load an excel sheet with a text file. My current program puts the complete file in one cell. Is there a way to put each data point in its own cell. Having issues interfacing with excel to accomplish this task.
Thanks
Joe
I'm considering getting a Mac. I want to make sure I'll be able to get a good text editor for it. I'm wondering what other folks are using.
Features I need -
Contextual highlighting for PHP, HTML, CSS, and preferably many others
FTP from a hotkey - so I can hit ctrl-s to save, then another combo to FTP it.
Features I'd like -
Code Completion
I'm also interested in any comments in general about coding on a Mac and if it's really worth the extra $$$ to get one.
Thanks
hi,
i write an application in which i want to write/draw the text using CGContext functions such as CGContextSetTextPosition, CGContextSetTextDrawingMode, etc.
I written an code but it can't be work,
CGContextSetTextDrawingMode (ctx , kCGTextFillStroke);
CGContextSetRGBFillColor(ctx, 5.0, 5.0, 5.0, 1.0);
CGContextSelectFont(ctx, "Times", 10, kCGEncodingMacRoman);
CGContextShowTextAtPoint (ctx, 60.0, 426.0, (const char*)"Sat", (size_t)20);
The above code is appropriate or not?
I try to write a dictionary extension for Google Chrome. Now, I want to pop out a small box when I double click to select text . How can I implement it :)
Or like this one ( Fastest Chrome ). They're written in javascript.
Thanks so much !
Hi folks,
I am using Gmail sender function defined here to send a mail to the predefined mail id. But my problem is that i want to embed more text into the body of my mail... The Gmail sender is only accepting one sting to be embedded into the body of the mail. Can anyone tell me how to embed more strings into the body of the mail... If Gmail sender is not efficient method to send a mail then please suggest me an alternative with an example....
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign to os.linesep the separator that I want to use when writing the file. Or specify the line separator when I open the file.
How can i get current x & y position of my CURSOR within a text area using javascript.
The event is a Keyup event, not a mouse event.
I am not looking for the current cursor position in terms of charecter but x , y coordinates.
I've got a UINavigationController and i've changed it to white using the Tint property of the navigation bar in Interface Builder. But the text in buttons and the title is still the default color, white, and so gets lost against the white background. Anyone know how to work around this?
If I insert a hyperlink using the insert function of Buzz, the link I posted will be parsed automatically, and that's not what I want.
Can I create Hyperlink text manually? using something like ?
thanks a lot for your help.
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign to os.linesep the separator that I want to use when writing the file. Or specify the line separator when I open the file.
I want to retrieve the text that the user has typed into the currently visible address bar, using Javascript. This is for google chrome only.
Is this possible? I know you can get the document URL via window.location.href, but I am unable to locate any javascript pertaining to current code inside the address bar/omnibar.
Thank you for the help!
I am trying to sort the dates from the earliest to the latest.
I was thinking about using the bufferedreader and do a try searching the first 2 characters of the string and then the 4th and 5th characters and finally the 7th and 8th characters, ignoring the slashes.
The following is an example of the text file I have:
04/24/2010 - 2000.0 (Deposit)
09/05/2010 - 20.0 (Fees)
02/30/2007 - 600.0 (Deposit)
06/15/2009 - 200.0 (Fees)
08/23/2010 - 300.0 (Deposit)
06/05/2006 - 500.0 (Fees)
What I want to do is write a text file to a smart card and read it.
WindSCard is the dll to be used but but it's functions are very cryptic.
Is there any FREE wrapper available over it and is there any tutorial that does what I want to do.