Questions tagged [printdialog]

In WPF PrintDialog is a class that invokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.

In WPF PrintDialog is a class that invokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.

More info

172 questions
2
votes
1 answer

Ignored Paper Size in PrintDialog/XPS Document Writer

I am trying to print with WPF's PrintDialog class (namespace System.Windows.Controls in PresentationFramework.dll, v4.0.30319). This is the code that I use: private void PrintMe() { var dlg = new PrintDialog(); if (dlg.ShowDialog() ==…
el_shayan
  • 2,735
  • 4
  • 28
  • 42
2
votes
3 answers

How can open print dialog box in another thread

If i simply call If PrintDialog1.ShowDialog = DialogResult.OK Then PrintDocument1.Print() End If its working fine but if i use this function in another thread then it will…
Sai Sherlekar
  • 1,804
  • 1
  • 17
  • 18
2
votes
1 answer

How to access print dialog of chrome browser to do DOM manipulation with chrome extension

Hello folk I just want to know is there a way for a chrome extension to access the print dialog created by the chrome browser using Ctrl + P command
Janaravi
  • 125
  • 1
  • 1
  • 10
2
votes
3 answers

IE or Edge Print dialog box send request to server without session (because SameSite=Lax on session cookie)

I have a asp.net site, which users can login and members can get report or print page by Ctrl+P. Recently when my members open my site in IE and try to print, they are logged out! why? because IE print dialog send some request to server without…
Sadegh
  • 639
  • 1
  • 5
  • 14
2
votes
0 answers

PrintDialog.PrintVisual for non-active VisualElements?

Introduction I have an application with a MainWindow (MVVM) consisting of a TabViewer with 5 Tabs. Each Tab contains a ScrollViewer, a Grid and several UserControls (MVC) within the Grid. Xaml of my MainWindow:
Azzarrel
  • 537
  • 5
  • 20
2
votes
1 answer

WPF Printing : Unable to get printer supported PageMediaSize

I am working on WPF application and facing some issues in Printing. PrintQueue.GetPrintCapabilities().PageMediaSizeCapability collection doesn’t having all PageMediaSize supported by printer. I am using hp officejet 7610 driver (which supports A3…
sudhakar c
  • 21
  • 1
2
votes
3 answers

Using an internal network, is it possible to print documents silently?

I have a client that hosts a touch screen kiosk in their lobby. It's essentially an internal html website. They want customers to be able to click a link and have a pdf print without seeing a print dialog or having to back track... completely…
Diventare Creative
  • 481
  • 3
  • 11
  • 31
2
votes
0 answers

print XPS from memory stream

I use c# I need to print DOCX, I send the docx to server , convert it to XPS and return XPS as memory stream. convert docx by aspose. At client I use next code: System.IO.Stream docStream = ...any xps as stream; Package package =…
Leonid
  • 81
  • 11
2
votes
0 answers

C# Cannot Print using PrintDialog when changing print properties after ShowDialog()

The issue occurs when i am using ShowDialog() before setting the Print page properties of my WPF Control (Height ,width ,Number of pages) and then calling PrintDocument() with the desired document, the result of those steps is an empty page printed.…
2
votes
1 answer

wpf simple print dialog page size issue

I'm creating a simple WPF print dialog box to setup a label printer. I want it to be very simple and so I've choosen not to use the standard WPF printdialog. All is going well accept for one thing, paper sizes. Having selected a printer from one…
user360349
  • 107
  • 1
  • 12
2
votes
1 answer

save PrintDialog configuration for next time open

I open a PrintDialog box then set print info on that using this; DialogResult result = PrintDialog.ShowDialog(); Now, I want to save infomation of the printDialog when I click 'Apply' button. And when I open printDialog box again, peviously set…
Do Thanh Tung
  • 1,223
  • 2
  • 19
  • 30
2
votes
1 answer

Print range not working even if values are set

I have a simple printing solution set up and normal printing works fine(tested it a couple of times), however when I use the PrintDialog to specify a custom page range, it is as if the range is ingored. When I debug I inspect the printDocument…
Marnus Steyn
  • 1,053
  • 2
  • 16
  • 44
2
votes
1 answer

PrintTicket provider failed to bind to printer. Win32 error: The printer name is invalid

I'm trying to show a Print dialog, before printing in a WPF application. I'm using Microsoft sample code from this link // Create the print dialog object and set options PrintDialog pDialog = new PrintDialog(); pDialog.PageRangeSelection =…
Eternal21
  • 4,190
  • 2
  • 48
  • 63
2
votes
1 answer

PrinterSettings does not take the number of copies

I have a question about the PrinterSettings in C#. When i set the PrinterSettings.Copies to 2 on a desktop printer it will print 2 documents. However when I set the Copies to 2 on a Zebra GK420d Label printer the number of copies I define will be…
Joey Erdogan
  • 184
  • 1
  • 13
2
votes
1 answer

Can't print FixedDocument to custom size

I have a ready FixedDocument to be printed with the below pagesize for the user to choose accordingly: if (Globals.LayoutSettings.paperSize.ToUpper() == "LETTER") doc.DocumentPaginator.PageSize = new System.Windows.Size(8.5 * 96, 11…
1 2
3
11 12