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
0
votes
0 answers

PrintPage method is printing twice consecutively

I want to print a document once using PrintDocument_PrintPage method in C#, but it is printing twice consecutively. Can you please help me with this? It is printing the draft lines on top of each other as seen in the image, and it is doing this for…
0
votes
1 answer

How to Get File then Print from a Textbox?

I'm programming for a friend to help them print all files in a folder (after filtering them). I've gotten to the point where I am able to select a folder, filter the files according to extension, and list them in a ListBox. I'm thinking that I'm…
AppleIT
  • 1
  • 5
0
votes
1 answer

PrintDlgEx invalid argument, while PrintDlg works

Problem: I need to get PrintDlgEx working for my project, but no combination of options or arguments works for me. It gives E_INVALIDARG for any combinations of options, as the ones I copied from Microsoft samples or other online samples. Replacing…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
1 answer

How to print out documents on a list which is datasource of DGV C#

my app has a DataGridView where all selected files get listed and added to a class which is the datasource of the DGV. public partial class Form1 : Form { BindingList dateienList = new BindingList(); private void…
LFLJM
  • 65
  • 10
0
votes
0 answers

How to hide or disable a printer in C# printer dialog?

There are 3 printers in the printer list, but is there a way to hide or disable one of them when I call the printdialog? For example, how to disable or hide the printers which names start with "Brother MFC", so that only allows users to select "HP"…
SuperBerry
  • 1,193
  • 1
  • 12
  • 28
0
votes
0 answers

Let user select any printer to print a report

This code works well printing to default printer, but how I can do to display the Print Dialog to allow the user to select any printer? var report = new ReportDocument(); report.Load(System.Windows.Forms.Application.StartupPath +…
0
votes
1 answer

Set focus to the OK button in the TPrintDialog

Is it possible to set focus to the OK button in the TPrintDialog when it opens?
0
votes
1 answer

Print PDF file with printdialog vb.net

I'm trying to print a external pdf file with printdialog options but the file is printed with predeterminated printer config Dim result As DialogResult = PrintDialog1.ShowDialog() If (result = DialogResult.OK) Then Dim psi As New…
David bbb
  • 3
  • 1
0
votes
1 answer

Batch Printing with condition from DataGridView

I am trying to batch print data from DataGridView using vb.net, a row per page. The current code just loops. I would like to process and print all rows and get to ask only once where to save the PDF. By the way, I have set the printer to PDF…
0
votes
0 answers

Java print dialog takes significant time to show

on a Citrix server we have a Java SE application that brings a v6 JRE, and a few other applications such as MS Office. Now we experience that the Java application takes a significant time to show the Print dialog when a user click on the Print menu…
Andy
  • 1
0
votes
1 answer

Migrating PrintDialog and PrinterSettings from winforms to wpf

I have the following code which works very well in winforms and C#: printDialog = new PrintDialog(); if (DialogResult.OK == printDialog.ShowDialog()) { try { PrintDocument pd = new PrintDocument(); PrinterSettings ps = new…
Fabián Romo
  • 319
  • 2
  • 14
0
votes
1 answer

Print dialog box is not open in after click on canel button

I am trying to print content using print dialog box in electron and angular.Here is code for print the content this.webview.nativeElement.getWebContents().print({}, (success, errorType) => { if (!success) { console.log(errorType, 'error…
user12629914
0
votes
1 answer

Print Fit To Page

I need to print a label to fit the page. I'm tryng this but print big than page, width and height seems to be to much private void PrinterPrintPage(object sender, PrintPageEventArgs e) { var b = Tasks.Pop(); if (b.Label == null) …
0
votes
1 answer

how to preselect a specific printer from webapplication

Different type of pdf files are generated using iText on the serverside and send over ResponsOutputStream. On the clientside, the printdialog is shown (at least on most viewer), and the defaultprinter is selected. Some pdfs should be printed on…
0
votes
0 answers

Get Dialog Handles For PrintDialog Children

I have an app that runs continuously. Users can open things like 'Options' or 'Print' etc but often walk away leaving them unused and open. Hence I now have timeouts on everything but the PrintDialog is giving me grief. The thread at Get modal…
Malcom
  • 61
  • 1
  • 9