Hmm, no kidding, where eez seez view-map entry?  I check in web tools and
the screen I was printing from and didn't see a place to set it.

Are you talking about a view-map setting in some controller?

Skip

-----Original Message-----
From: Jacopo Cappellato [mailto:[EMAIL PROTECTED]
Sent: Friday, November 30, 2007 11:25 PM
To: [email protected]
Subject: Re: Printing


By the way,

I think that you can specify the "text/plain" option in the view-map
entry of the screen (without modifying the code in sendPrintFromScreen).

Jacopo

[EMAIL PROTECTED] wrote:
> Hmmm, forget this.  It's late.   The problem is that the invoices I was
> printing were outputing multiple lines for each line in the form and
> therefore hosing line count.
>
> Skip
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 30, 2007 10:26 PM
> To: [email protected]
> Subject: Printing
>
>
> sendPrintFromScreen() works a charm if you have a post script printer.
>
> However, I am having problems getting it to work with "text/plain".  You
> might ask why I wanna do that, and the answer is that my current customer
> has half a dozen workhorse dot matrix printers that spit out a hundred
pages
> a minute for about 5cents.
>
> So, I want to utilize these for some ordinary printing jobs like
reprinting
> invoices for internal use and the like.
>
> So, I modified sendPrintFromScreen() so that if it doesn't find a
postscript
> printer with the printer name that was passed in, it changes the
contentType
> to "text/plain" and checks again.  It always finds this one if I have not
> picked a postscript printer.
>
> The problem is that the renderer does not seem to put formfeeds at the
end.
> This is not a problem when you only print one, but when you are
> massPrinting, everything gets pretty hosed.
>
> My test setup is printing three invoices from :
>
>
https://localhost:8443/ordermgr/control/findorders?printerName=OKIData9721&s
>
erviceName=/ordermgr/control/massPrintOrders?hideFields=YpartyId=NOAA%20NWAF
>
C&hideFields=YpartyId=NOAA%20NWAFC&screenLocation=component://order/widget/o
> rdermgr/OrderPrintForms.xml#OrderPDF
>
> Anyone have any idea how to encourage the fop guy to put a ff after the
> document is finished in plain text?
>
> I am fairly sure this is the problem because I can use
>
> DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
> printer = PrintServiceLookup.lookupDefaultPrintService();
> // Create the print job
> DocPrintJob job = printer.createPrintJob();
> Doc doc = new SimpleDoc(myDoc, flavor, null);
> // Print it
> job.print(doc, null);
>
> And send in a FF terminated string and it all works fine.  I would just
> prefer to use that FOP renderer so I don't have to hand code a bunch of
> stuff.
>
> Skip
>



Reply via email to