Wait. You need to implement this on Windows? In this case do it the Windows
way and use PowerShell. For example Output-Printer Cmdlet:
http://technet.microsoft.com/en-us/library/hh918357.aspx
http://technet.microsoft.com/en-us/library/ee176926.aspx
http://www.ehow.com/how_12007360_send-printer-powershell.html

With powershell you can also instantiate COM objects and make manipulations
on Excel, Word, Office documents.
I may misunderstood the situation though.


On Sun, Jan 19, 2014 at 4:19 AM, Paul Boniol <[email protected]> wrote:

> Unfortunately the server and users are Windows systems (not my choice,
> have to play with what I've been given).  So I've got Perl and a web
> browser, and whatever normal documents they can open.  So that lets out
> some solutions, sorry I should have specified.
>
> I have considered using CSS or something like XML/XSLT.  A basic HTML
> table would take care of a lot of the formatting.  However, I need "do a
> page break here" and to repeat the column headers on every page.  (Well, I
> can easily repeat headers in Firefox, but I can't guarantee what browser
> the end users will use.)  It's been a few years, buy my coworker told me he
> couldn't reliably get HTML/CSS page breaks and column headers to work with
> different browsers at the time.  (Could be a different story now.)
>
> My next thought was PDF, as it is very geared toward printing.  Though I
> didn't really want to specify x/y coordinates for everything (that I was
> seeing in examples), unless I had to, which is what prompted my ask.
>
> I just thought about Excel.  I've done many programs with fairly simple
> Spreadsheet::WriteExcel usage.  This actually might work well.
>  set_h_pagebreaks() and set_border() new to me, but the documentation says
> they will do the page breaks and the lines around cells that I need.  I'm
> already familiar with repeating headers.
>
> Paul
>
>
> On Sat, Jan 18, 2014 at 5:53 PM, Michael Chaney <
> [email protected]> wrote:
>
>> Personally, for simple pagination I output in HTML and then use html2ps
>> to get it printable.  Beyond that you can use the postscript or PDF
>> modules, which I use in other cases.
>>
>> Michael
>>
>>
>> On Saturday, January 18, 2014, Paul Boniol <[email protected]> wrote:
>>
>>>  I know in this day of web pages and mobile devices, actual paper
>>> output is passé.  But on occasion it is needed.
>>>
>>> Is there a (relatively easy) way to create a PDF or other printable
>>> document out of Perl?  I don't need anything too fancy (read: I don't
>>> really want to specify the coordinates of everything unless absolutely
>>> required) but I do need pagination, and column/row lines.
>>>
>>> Anyone worked on something similar?  Any hints/tips greatly appreciated!
>>>
>>> Thanks!
>>> Paul
>>>
>>>
>  --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to