Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Print selection of a file
Print selection of a file [message #763226] Fri, 09 December 2011 06:31 Go to next message
exquisitus Missing name is currently offline exquisitus Missing name
Messages: 5
Registered: December 2011
Junior Member
Hi,

today I tried to print out a selection of a data file (simple txt-format) for further analysis. But Eclipse (Indigo on a Mac) seems only to be able to print out the whole file or one given range of pages, but not the selected lines. On the other hand, there's not possibility to find out the page number to a given line number.
So I could print out a test page, count the lines on it, go to the desired selection, divide the selections line number by the number of lines on a page and so on...
A short test showed that this affects text files as well as Java and C++ source files, so maybe it's a general problem.
I think, this is not a very comfortable and recent way and suggest adding possibilities to print out a selection and/or multiple page ranges (page 1;3-5;8;10).

Thx
Exq.
Re: Print selection of a file [message #764613 is a reply to message #763226] Mon, 12 December 2011 09:30 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 09.12.2011 12:31, exquisitus wrote:
> Hi,
>
> today I tried to print out a selection of a data file (simple
> txt-format) for further analysis. But Eclipse (Indigo on a Mac) seems
> only to be able to print out the whole file or one given range of
> pages, but not the selected lines.
This should work, but you need to choose 'Selection' as page range in
the print dialog.

Dani
> On the other hand, there's not possibility to find out the page number
> to a given line number.
> So I could print out a test page, count the lines on it, go to the
> desired selection, divide the selections line number by the number of
> lines on a page and so on...
> A short test showed that this affects text files as well as Java and
> C++ source files, so maybe it's a general problem.
> I think, this is not a very comfortable and recent way and suggest
> adding possibilities to print out a selection and/or multiple page
> ranges (page 1;3-5;8;10).
>
> Thx
> Exq.
Re: Print selection of a file [message #768727 is a reply to message #764613] Tue, 20 December 2011 12:04 Go to previous messageGo to next message
exquisitus Missing name is currently offline exquisitus Missing name
Messages: 5
Registered: December 2011
Junior Member
Hi Dani,

thanks for your reply.
I can't find the item "Selection" at all in the print dialog.
Where did you find it? Do you use Eclipse Indigo on a Mac?

Exquisitus
Re: Print selection of a file [message #769001 is a reply to message #768727] Wed, 21 December 2011 03:16 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 20.12.2011 18:04, exquisitus wrote:
> Hi Dani,
> thanks for your reply. I can't find the item "Selection" at all in the
> print dialog. Where did you find it? Do you use Eclipse Indigo on a Mac?
The Print dialog comes from the OS. I'm on Windows 7.

Dani
>
> Exquisitus
>
Previous Topic:Setting preferences like target platform and import projects on startup
Next Topic:Unable to Create Servlet Because of Getting Error While Creating Servlet in Eclipse for Java EE
Goto Forum:
  


Current Time: Wed Aug 20 20:29:30 EDT 2014

Powered by FUDForum. Page generated in 0.01580 seconds