Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Print Multiple Pages
Print Multiple Pages [message #230013] Tue, 30 January 2007 11:24 Go to next message
Eclipse UserFriend
Originally posted by: siddharth.star.gmail.com

Hi,
I have a model which can provide me with multiple pages (All these pages
are renderend in the form of an editor which I have created). I am using a
MultiPageEditorPart for the same. Now printing a single page is no big
deal (making use of the PrintGraphicalViewerOperation hierarchy). The
problem with a single page is just the UI alignment but this is non
significant when compared to the other one. All my attempts so far to
print multiple pages (All the pages of the MultiPageEditorPart as separate
pages/ entities) in one go have failed sometimes with absurd outcome.
Looking forward to some help

Thanks,
Siddharth

PS: Has anyone else faced a similar predicament or knows how to deal with
the situation. Any and every hep would be highly appreciated
Re: Print Multiple Pages [message #230063 is a reply to message #230013] Wed, 31 January 2007 07:51 Go to previous messageGo to next message
Mark Hoffmann is currently offline Mark HoffmannFriend
Messages: 113
Registered: July 2009
Location: Jena
Senior Member
Hello,
I have built a print preview which shows only one "print page" in a
viewpart.
But I sometime have more than one page to show or to print. So I created
some kind of navigator that can nextPage, prevPage, firstPage, lastPage,
getCurrentPage. I set this navigator as content of the GEF viewer. For the
PrintAction I took the same and used the model as "iterator" in while
loop. and got the current "print page" via getCurrentPage.
I took the print command from Logic example as template.

Mark
Re: Print Multiple Pages [message #230115 is a reply to message #230063] Wed, 31 January 2007 19:59 Go to previous message
Suresh Mohan is currently offline Suresh MohanFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Mark,

can you please post may be your code snippets for the page navigation. I am
looking to do something similar and it will save me some time.

Thaks
Suresh

"Mark Hoffmann" <mark.hoffmann@web.de> wrote in message
news:29b16cb4c52d04fe064ba3c5c894b813$1@www.eclipse.org...
> Hello,
> I have built a print preview which shows only one "print page" in a
> viewpart.
> But I sometime have more than one page to show or to print. So I created
> some kind of navigator that can nextPage, prevPage, firstPage, lastPage,
> getCurrentPage. I set this navigator as content of the GEF viewer. For the
> PrintAction I took the same and used the model as "iterator" in while
> loop. and got the current "print page" via getCurrentPage.
> I took the print command from Logic example as template.
>
> Mark
>
Previous Topic:Possible BUG with clone and move request?
Next Topic:bug in the logic example???
Goto Forum:
  


Current Time: Mon Oct 18 22:45:36 GMT 2021

Powered by FUDForum. Page generated in 0.02214 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top