proton-69 has asked for the wisdom of the Perl Monks concerning the following question:

I want to convert this VB code to perl code
Selection.InsertBreak Type:=wdPageBreak
I tried this
$obj_sel->InsertBreak({Type => 'PageBreak'}) ;
But page break is not getting inserted. Thanks, Proton-69

Replies are listed 'Best First'.
Re: how to convert this VB code to perl
by gone2015 (Deacon) on Jan 27, 2009 at 18:11 UTC
      Does not help...:(

        :-( Well...

        ... $obj_sel->InsertBreak({Type => 'PageBreak'}) ; doesn't look to me like a complete program... Can one assume that you've done all the things necessary to open the document you want to insert a page break into and then select the place at which to insert it ? It's not clear whether your issue is with driving OLE in general or with this method in particular.