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.

240 questions
2
votes
1 answer

Object doesn't support property or method 'ExecWB' when trying to call a print preview dialog in IE9

I am writing a web application for IE9 and I need to open the Print Preview dialog (not the window.print(), but the one where they can set the margins etc.) I found this code in this question - Open another page or image in print Preview: function…
user6269864
2
votes
1 answer

Print & Print Preview a Bitmap plus a Label with Text in it in c#

I have made a function in my program that will print off bitmaps and a image from a picturebox, but now want to print a label with text in it as well. This is my current code: private void printToolStripMenuItem_Click(object sender, EventArgs e) { …
Chris Bacon
  • 995
  • 8
  • 30
  • 42
2
votes
1 answer

Adding header for dynamic pages on print

I have multiple tables that fill dynamically. I want to print header on every pages in print mode, But when a table rows doesn't fit on the page they print on the next page and my header print on them. Like this : This is my print preview how can I…
Samira kalantari
  • 320
  • 1
  • 2
  • 16
2
votes
1 answer

Print a document without print preview in windows store apps

I am developing a Windows Store application in Visual Studio 2013 using XAML and C#. In my project, I have to print a XAML window without having print preview. Can anybody share the code for the same? Thanks in advance.
Praveen VR
  • 1,554
  • 2
  • 16
  • 34
2
votes
2 answers

How can I prevent the left "gutter" (row number) column from printing (EPPlus)?

The "Print Preview" of a spreadsheet created with my EPPlus code shows the gutter/row number column (column 0, so to speak): How can I programmatically prevent the gutter/row number ("crack?") column from printing? My printing setup code is…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
0 answers

Blank Print Preview Window in Microsoft Edge

When the content-type header from the server is application/pdf I'm getting a blank Print Preview window in Microsoft Edge. See Linked Image In other browsers the Print Preview window works as expected. Are any extra headers for Edge, in order to…
2
votes
0 answers

Exporting VB.NET PrintDocument to Excel

I have a PrintPreviewDialog control onto which I've added an extra button in the toolbar, to export the contents of the print preview window as an Excel spreadsheet. As the control is intended to be a "black box" to any calling code, I don't have…
Wallnut
  • 155
  • 5
2
votes
1 answer

Certain print media css will crash Internet Explorer's print preview

Lately I started getting complaints from Internet Explorer users that they couldn't print or print preview my website anymore. Doing so would crash Print Preview and would not print the page at all. I couldn't find any useful solutions, as most…
2
votes
1 answer

IE8 hangs on print

IE8 on my system generally prints a page as expected. But for one particular page on the application i am developing, when i choose Print or Print Preview, IE8 hangs indefinitely (This doesn't happen on Firefox). What peculiarity of a particular web…
imdahmd
  • 737
  • 1
  • 6
  • 15
2
votes
0 answers

css print repeat headers on subsequent pages

I have searched and viewed so many similar questions but can not solve this issue yet . I've tried page-break-before: always; but seems it doesn't work neither ff nor chrome . all suggestions are welcome
peter
  • 112
  • 1
  • 8
2
votes
3 answers

Hide urls when printing a page

I have this webpage: It looks like this when I try to print it: It's missing the last item (user management) intentionally so that's not a problem. But I'd like to hide the "(/campaigns)" and "(/profanity)" from the print. Is that possible using…
user936965
2
votes
1 answer

Remove header and footer when printing from WebBrowser control

I have a C# application that use MySql database. I built a report using HTML. I fill string attribute with tags and send the content to a WebBrowser control in a new form. The report appear correctly, but when I call print preview…
Minions
  • 5,104
  • 5
  • 50
  • 91
2
votes
1 answer

View Datagridview in Print Preview Window

I am creating an application in vb.net. I have a datagridview control in my VB form. I need to view it on printpreview window with the contents in it. I have other control like labels and textboxes in the form and I can view all in printpreview. In…
2
votes
0 answers

Is it possible to print exactly what is in printpreview?

can I print what is in the print preview dialog? I have this code and it didn't print what is in the print preview dialog. I mean when I use a one whole bond paper (8.5x11), this code prints on the top-leftmost part of the bond paper but that is not…
ViFer
  • 283
  • 1
  • 6
  • 23
2
votes
2 answers

jQuery Print Preview

I am attempting to add the jQuery Print Preview Plugin into my website but I use AddThis' Print Option. I am not sure if there is a way for me to add the print preview plugin using AddThis. Is there a way? Here is my code: JS: var $j =…
L84
  • 45,514
  • 58
  • 177
  • 257