Questions tagged [print-preview]

Print Preview is a software function to display a document or page before it is produced in its final form - often a physically printed document.

229 questions
704
votes
11 answers

Using Chrome's Element Inspector in Print Preview Mode?

I am working on developing a website and need to work on the print view. Typically when I have layout issues I use Chrome's Element Inspector. However this does not exist in print preview mode. Is there a Chrome plugin or some other way to change…
253
votes
3 answers

CSS to set A4 paper size

I need simulate an A4 paper in web and allow to print this page as it is show on browser (Chrome, specifically). I set the element size to 21cm x 29.7cm, but when I send to print (or print preview) it clip my page. See this Live example! body { …
David Rodrigues
  • 10,690
  • 14
  • 51
  • 83
24
votes
6 answers

div background color in print page doesn't work

I want use a div that has a background-color, but if I print the page it appears in white . When I create a table using it also does not work. How I can create a print page using css and html ? My code :
Ebad ghafoory
  • 1,272
  • 3
  • 12
  • 25
17
votes
2 answers

Emulating print media in Internet Explorer

I am implementing printing of a web page that is originally displayed in Internet Explorer. I would like to use the browser "Inspect Element" functionality when in print mode. So I would like to emulate print media, while still actually displaying…
11
votes
3 answers

Print preview margin of print-hidden part in chrome new version

I have shown some screenshots which shows problem... Problem: I'm trying to print this page with only table and as shown in image with open side pane i have put that side pane into print-hidden and it was working till the version of Google Chrome…
Sagar Naliyapara
  • 3,169
  • 4
  • 34
  • 55
11
votes
3 answers

Print dialog and print prewiew dialog for WPF

Is there a print dialog for WPF that is combinated whit a print preview dialog in WPF like Google Chrome or Word does? At this moment I use a the print preview dialog from Windows forms. I have also try for to use the WPF version of it. But WPF has…
H. Pauwelyn
  • 11,346
  • 26
  • 71
  • 115
9
votes
3 answers

how do I do print preview in win32 c++?

I have a drawing function that just takes an HDC. But I need to show an EXACT scaled version of what will print. So currently, I use CreateCompatibleDC() with a printer HDC and CreateCompatibleBitmap() with the printer's HDC. I figure this way the…
Stephen Hazel
  • 829
  • 2
  • 10
  • 24
8
votes
1 answer

Print preview squishing content

I'm trying to get print preview to print for me in the way that I want it to using the @page directive in CSS. For some reason, no matter what my page margins are set to, the content gets squished, even if the numbers are supposedly exact. Here is…
Seiyria
  • 1,941
  • 3
  • 28
  • 50
8
votes
3 answers

Where do you get zebra printer fonts for print preview?

I'm printing labels with a Zebra printer using Java by sending ZPL II commands. I want to show a preview of the label before sending it to the printer. Rather than trying to send fonts to the printer, I'd like to use the built in fonts. I can see a…
Steve Kallestad
  • 3,134
  • 2
  • 20
  • 30
8
votes
4 answers

Images not displaying when Print Preview (Or Print) in IE/Chrome/Firefox

I'm Web Developer and almost never work with design but have been given this bug which I'm struggling to rectify. Some images appear correctly when I print/display the print preview page, however others don't. The key difference that I can see is…
7
votes
1 answer

Get print page count without printing the document

This is somewhat similar to question about Is there a better way to get the page count from a PrintDocument than this? But in my case I have a web-browser control with formatted html. At the moment I have option which calls ShowPrintPreviewDialog()…
huMpty duMpty
  • 13,481
  • 12
  • 52
  • 88
6
votes
2 answers

Print and Preview DataGridView in Landscape format

Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click preview.PrintPreviewControl.Zoom = 1 preview.Document = print print.PrinterSettings.DefaultPageSettings.Landscape = True …
Rara Arar
  • 401
  • 3
  • 12
  • 22
5
votes
2 answers

How to use QPrinter and QPrintPreviewDialog

I want to preview, and then print, a report through a printer using PyQt. I tried the following code : printer = QtGui.QPrinter() doc = QtGui.QTextDocument("testing") dialog =…
s.jor.ibra
  • 177
  • 1
  • 1
  • 16
5
votes
2 answers

How to open the print preview dialog when printing an iframe in Firefox?

Unlike just about every other major browser, in Firefox, window.print opens the print dialog instead of the print preview dialog. This issue was recognized by Firefox devs a long time ago, and, rather than "fix" it, they decided to implement a…
Matthew Herbst
  • 21,357
  • 19
  • 68
  • 107
5
votes
1 answer

How do I use Firebug with print-preview in Firefox?

Possible Duplicate: How to see the print media CSS in Firebug? I'm working on a Plone website with plenty of @import and linked CSS and am trying to use the Web Developer Toolbar to show only the print css. Unfortunately on this particular…
joeforker
  • 36,731
  • 34
  • 138
  • 231
1
2 3
15 16