Front page | perl.beginners |
Postings from April 2012
Re: Create, Merge and work with tables in MS WOrd Documents Win32::Ole
Thread Previous
From:
Somu
Date:
April 12, 2012 19:28
Subject:
Re: Create, Merge and work with tables in MS WOrd Documents Win32::Ole
Message ID:
CAL5VgOk+eN_heY-gNbz1D1A9KqkBw9kxQUpE1YZJ53kjKV-ZDQ@mail.gmail.com
Hello Raito!
You could also use Pod::Webserver. Please check this link:
http://search.cpan.org/~arandal/Pod-Webserver-3.05/lib/Pod/Webserver.pm.
Install the module Pod::Webserver, then issue a command 'podwebserver' on
your CLI . Then from your browser will be able to check all the module
installed on your system in your browser.
* - Timothy Adigun*
*
*
to install the module Pod::Webserver, issue the following command on your
CLI
cpan Pod::Webserver
On Fri, Apr 13, 2012 at 4:14 AM, Raito Garcia <saintarmin@gmail.com> wrote:
> Hi...
>
> I have this code
>
> use Win32::OLE;
> my ($t_row, $t_col) = (4,3);
> my $word = Win32::OLE->CreateObject("Word.Application");
> $word->{Visible} = 1;
> my $doc = $word->Documents->Add;
> my $table = $doc->Tables->Add($word->Selection->Range,$t_row, $t_col);
> $table->Select();
> $table->AutoFormat(4,1,1,0,1,1,1,1,1,1);
> $word->Selection->MoveUp(5,4);
> $table->Cell(1,1)->Range->{Text} = "Blue";
> $table->Cell(1,2)->Range->{Text} = "Red";
> $table->Cell(1,3)->Range->{Text} = "Green";
> $table->Cell(3,1)->Range->{Text} = "Other Colors";
> $table->Rows->{HeadingFormat} = -1;
>
> Well My question are:
>
> Exist a method to merge cells? for example I want to merge Cell(3,1) (3,2)
> (3,3)
> Exist a method to put all the table visible?
> I want my table in this way but i dont know what kind of methods are
> available in the Win32::Ole... Existe some kind of web or documentation to
> search this methods?
>
> --------------------------------------------
> | Blue | Red | green |
> ---------------------------------------------
> |_______|_________|_______|
> |*Other colors *_____________|
> |_________________________|
>
> Thanks so much
>
--
Love,
Somu,
http://lose.yourself.mcommunity.biz
http://fidel.castro.peperonity.com
Thread Previous