How we can determine pages to print in xps documentViewer? - printing

When I want print an XPS Document using DocumentViewer(which I created it by DocumentPaginator ),Print Dialog only shows me to print all pages and I can not determine page numbers to print, How we can say to documentViewer to print some Page Range rather than all pages?(Determining page number or current page is disabled)!

Related

How to create a style within OpenDocument/LibreOffice Writer to get titles on their own page?

I would like to make a style within a LibreOffice text document that formats all my top-level headlines to appear alone on a dedicated page. Actually, I would like to have quite the same as the chapters title pages of the LibreOffice Writer documentation but I don't know how to do it.
Any idea how?
Maybe you can have a look at the odt document you cite as example and see how it is done there?
Go to the title page. Select the title - then press F11 to bring up the 'Styles' box.
A special style for these chapter headings has been created called 'OOoHeading 0'. There is a page break before and a page layout style called 'OOoPageStyle'.
See example 'chapters; (around page 185)
A possible scenario: You are writing a book that is divided into chapters. Each chapter starts with a page style called New Chapter. The following pages use the Default page style. At the end of each (except the last) chapter, we return to the New Chapter page style for the first page of the next chapter.
Implement that in your document.

Print web page with original look

I want to achieve print functionality such that user can print out the web form and use it as paper form for the same purpose. Of course I do not need all the web page header and footer to be printed, just content of a div which take most of the page. I did play around with media print css and menage print result to look almost as original page. But the I tried to print it in another browser(Chrome) and it is all messed. (before I tried Mozilla).
For the web form I user css framework Twitter Bootstrap and I had to override its css (in print media) for almost each element individually to get some normal look in the print result.
My question is is there some way (framework/plugin) to print just what you see on the page, maybe as an image or something?
Any other suggestions are welcome.
Thanks.
If you are familiar with PHP you can try the PHP class files of TCPDF or those of FPDF.
Or there is also dompdf which renders HTML to PDF, but this will include more than just the information of one div.
And for further info here is a post on Stack where users are discussing which they think is best.

how do I force a page break in Rave Reports, Delphi 7?

I am new to Rave and I'm having a ridiculous amount of difficulty forcing page breaks between sections of my report. It's a master-detail report, with various types of detail sections (master = patient; detail 1 = visit history; detail 2 = medications etc.). I've got the detail sections working ok but need to: a) force a page header to carry over on every page and b) force each detail section to start on a new page. In other words, I want every page of the report to include a header with the patient name, ID etc., and I want each type of data (visits, meds, etc.) to appear as its own section.
I've tried the different Band styles and checkboxes for having the bands appear on every new page, etc., but I can't get a header or a page break for the life of me.
Can anyone provide the settings I should use for the page header band and the bands that should begin a new page with each section? Many thanks!
Clicking "New Page (P)" in Band Style Editor should force it to be printed on each page. If not, maybe verify that the Header band style (Group/Body etc) has the ControllerBand set to the Detail databand of your DataView.

Print and will_paginate

I'm working with ruby 1.8.7 and rails 2.3.5.
I use will_paginate to display the result of a database request.
and i well display 20 results per page and i have lets say 15 pages to display.
Now i need to print the whole list, i found out a printing method adding a link into my view file erb <%=link_to_function("Print this Page", "javascript:print()")%>
But it only print the 20 results available on the screen. Is there a method to print the 300 results in one clic
Thanks for all advises and ideas
The print link should send to a non paginated print page with the 300 results and then print from here, you try to print from a view which only has access to the paginated object.

Raw HTML in Form Filter

At my company, we had developed a athletes management solution, were each athlete is inserted in the application by administrators users. For the referred solution, it was used the symfony admin generator.
On the second project iteration, one of the clients request was to turn the printed athletes list more legible. To accomplish that, we had created proper CSS styles, to be used when the user selects the browser print option.
However, the athletes form filter has some HTML tags (symfony widgets) whose do not render properly, namely, the select tag that has possible multiple choices (the select choices do not appear on the print preview).
So, I would to know if is possible to insert raw HTML directly on the form filter (get the selected options and convert them is labels or plain text), that will be only visible when the user selects the print option.
You could put a custom widget in place of the standard choice widget that adds in the values you want to be shown when printing but hidden with styles by default. Then you show them using your print style sheet.

Resources