Print Multiple Pages [message #230013] |
Tue, 30 January 2007 06:24  |
Eclipse User |
|
|
|
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 #230115 is a reply to message #230063] |
Wed, 31 January 2007 14:59  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.86356 seconds