Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^9: Mail Merge with Word 2007 and Perl

by cmiller2005 (Initiate)
on Sep 19, 2014 at 02:44 UTC ( [id://1101136]=note: print w/replies, xml ) Need Help??


in reply to Re^8: Mail Merge with Word 2007 and Perl
in thread Mail Merge with Word 2007 and Perl

Thanks so much roboticus

I copied your code above but on the output it still only prints the first line to the document. I wonder if it may be something in the main program that is trying to print everything onto one line and its not showing everything in the .eps file?

I put in a print $txline just before the return statement and the output is fine, its just not getting everything to the document or the document is just putting it all on one line and not showing all of it. I'm thinking it must be the latter since it all prints fine on the console.

I think the problem is with the following lines in the main program:

$text = &getLetter; $line -> text (40, 610, $text);

Maybe I need a nested while loop that would update the y position of the text so that each line will print on its own line. What do you think?

Thanks so much for your continued help and advice

Carl

Replies are listed 'Best First'.
Re^10: Mail Merge with Word 2007 and Perl
by roboticus (Chancellor) on Sep 19, 2014 at 03:15 UTC

    cmiller2005:

    If you're printing it as a single text string, then you'll need to break it up and print it in chunks. If I recall correctly, one of the PDF modules has a function that'll take a text string and wrap it around appropriately to fill in a block. You may google for PDF text wrap, or nose around on http://cpan.org to find it.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1101136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found