[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: printToFile and StyledText

The print() method of StyledText is very primitive. It was added at the
specific request of a customer, and the only thing it does is send the
contents of the StyledText to the default printer. It does not bring up the
print dialog, and because of this, it does not honour the Print to file
check box. Printing of StyledText contents will be added to the Eclipse UI
in the near future. At that time, it will probably be necessary to add new
API to StyledText to print properly. The original StyledText.print() API
will be kept, but it may only be useful to the requesting customer.

Carolyn

"Brian Roberts" <brianr@xxxxxxxxxxxx> wrote in message
news:3B5F3B6E.68E5DF38@xxxxxxxxxxxxxxx
> The print() method of StyledText doesn't seem to honor printToFile (i.e.
> I bring up the PrinterDialog, check "Print To File" and then call
> StyledText print() method.  I've also tried getting the default printer
> PrinterData, setting its printToFile element to true and then calling
> the StyledText print() method.  In both cases, the output still goes to
> the (physical) printer.  As an aside, I also never get the requestor for
> the file name to print to.  Is there something I have to call to get
> that to appear?  Do I have to put up a requestor myself and then set
> some field in the PrinterData (based on the user's input)?
>
> I'm using R0.9
>
> Thanks,
> -=b=-
>