in reply to Re: writing Arabic text in Excel
in thread writing Arabic text in Excel
use Win32::OLE qw(CP_UTF8); Win32::OLE->Option(CP=>CP_UTF8); use Win32::OLE::Const 'Microsoft Word'; use Spreadsheet::WriteExcel; my $workbook = Spreadsheet::WriteExcel->new("word.xls"); my $worksheet = $workbook->addworksheet(); my $word = Win32::OLE->new('Word.Application', 'Quit'); my $doc = $word->Documents->Open("C:\\file.doc"); my $string = $doc->Words->Item(1)->Text; $worksheet->write(0, 0, $string);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: writing Arabic text in Excel
by vkon (Curate) on Apr 06, 2006 at 21:57 UTC |