Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

How do I generate a preview in the printdialog box in vb.net. In the frame where the preview would appear, the message "This app doesn't support print preview' appears. (Pictured below) I use ...
E Bell's user avatar
  • 21
1 vote
0 answers
56 views

I am attempting to use the PrintPreviewControl to preview a test form using custom page settings PrintDialog works fine, e.g. set margins and landscape in code PrintDialog prints the page correctly, ...
mrfrisky330's user avatar
0 votes
0 answers
76 views

I have the following datatable: rowNR L1 L2 L3 L4 row1 Listing1 Listing2 Listing3 Listing4 row2 Listing1 Listing2 Listing3 Listing4 row3 Listing1 Listing2 Listing3 Listing4 row4 Listing1 Listing2 ...
MyAccount's user avatar
0 votes
1 answer
45 views

When I try to enter the number of copies in the PrintDialog window, the PrintDialog->Copies property does not change. That is, I am trying to write the value of the PrintDialog->Copies property ...
Максим Афиногенов's user avatar
1 vote
1 answer
400 views

In the Edge browser, I am opening the file specified in the src of an iframe as shown below. However, when trying to save it as a PDF, the file name appears correctly in the Chrome browser, but in the ...
Resul Bekir Şahin's user avatar
0 votes
0 answers
88 views

I wrote in C# a function to prints a FlowDocument on a printer. The FlowDocument is first paginated with tables and sections with different font properties depending on the section. In practice ...
Gaetano Riva's user avatar
2 votes
0 answers
962 views

We are struggling with the new print preview with windows 11. Before the print we are changing some settings based on some configuration of our program. This settings are applied to the old print ...
Alessandro's user avatar
0 votes
0 answers
167 views

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 ...
Ahmed Akpolat's user avatar
0 votes
1 answer
308 views

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 ...
AppleIT's user avatar
0 votes
1 answer
671 views

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 ...
Thalia's user avatar
  • 14.8k
0 votes
1 answer
175 views

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<Datei> dateienList =...
LFLJM's user avatar
  • 85
3 votes
1 answer
377 views

in C# Winform, i'm sending an Image to the printer using the PrintDialog... using this code: private void PrintSnippedImage() { PrintDocument pDoc = new PrintDocument(); ...
eric K.'s user avatar
  • 43
0 votes
0 answers
545 views

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 "...
SuperBerry's user avatar
  • 1,353
-1 votes
1 answer
609 views

So I have an Window which I want to Print. For that I created an Print Dialog. Which looks like that: PrinterSettings settings = new PrinterSettings(); string Printer = settings.PrinterName; ...
user avatar
0 votes
0 answers
295 views

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....
user3154288's user avatar
-1 votes
1 answer
66 views

I have a very simple WPF XAML code: <Grid Name="MainGrid" Margin = "20 0 20 0"> <Grid.RowDefinitions> <RowDefinition Height="*"/> &...
Shahzaib Hassan's user avatar
-2 votes
1 answer
1k views

I use this code to print pdf to default printer. public static void PrintPDFByProcess() { try { using (Process p = new Process()) { p....
bigtheo's user avatar
  • 671
2 votes
1 answer
504 views

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's user avatar
  • 155
0 votes
1 answer
231 views

Is it possible to set focus to the OK button in the TPrintDialog when it opens?
Bob Penoyer's user avatar
1 vote
1 answer
2k views

I am trying to set a WPF PrintDialog to use values set by the user on a form to control the basic printing options, without ever showing them a dialog. The goal is to allow them to set their print ...
tkolakow's user avatar
0 votes
1 answer
1k views

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 = ...
David bbb's user avatar
0 votes
1 answer
345 views

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. ...
MyXbox Account's user avatar
0 votes
0 answers
78 views

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 ...
Andy's user avatar
  • 1
0 votes
1 answer
589 views

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 ...
Fabián Romo's user avatar
0 votes
1 answer
368 views

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) => { ...
user avatar
2 votes
3 answers
2k views

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 ...
Sadegh's user avatar
  • 699
2 votes
0 answers
340 views

I have this error that I can't fix and I reformatted this question after I got some testing done. I have a code that works in my application if I am running the program with the same user I am logged ...
Muhannad's user avatar
  • 455
0 votes
1 answer
528 views

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 ...
user2448443's user avatar
2 votes
0 answers
438 views

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 ...
Azzarrel's user avatar
  • 593
1 vote
0 answers
599 views

I want to print FixedDocument with "Microsoft Print to PDF" and without showing up dialog to choose directory. I know that I can do this by passing to PrinterSettings: PrintFileName and PrintToFile ...
gorrch's user avatar
  • 551
0 votes
0 answers
220 views

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 ...
Malcom's user avatar
  • 61
-1 votes
1 answer
616 views

on my app (win10, WPF) i give the user the possibility to print a report. BUT when there is not-yet-configured printer on the LOCAL machine - it is impossible. (of course that the printer is activated ...
RedHat's user avatar
  • 177
4 votes
0 answers
490 views

I've written code for print the datagridview. But when I set the range of using "AllowSomePages = true" it still prints all the pages. Here is the code I've written for printing. Already referred ...
root's user avatar
  • 41
2 votes
1 answer
580 views

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 ...
sudhakar c's user avatar
0 votes
0 answers
80 views

that drives me nuts. I try to silent print a ribbon (1000 mm height, 150 mm width). The content is a Canvas containing a formatted Text. If I use "Microsoft Print To PDF" it works and looks OK. When ...
user1857519's user avatar
0 votes
2 answers
2k views

I am trying to get the printer name selected by the user from the PrintDialog, however PrintDialog1.PrinterSettings.PrinterName.Equals is returning the default windows printer name and not the printer ...
Mark's user avatar
  • 1,420
0 votes
3 answers
190 views

I have to print all pictures stored in a directory. Users' request is that the print preview dialog should be displayed so that they can choose the page arrangement (see picture). I tried to use the ...
mr anto's user avatar
  • 23
0 votes
1 answer
175 views

We are currently a printing method from within WPF that utilises the standard print dialog. We've began having issues with our security tokens after a print. Debugging showed that the culture is en-...
Christopher Gibson's user avatar
0 votes
1 answer
259 views

I have a printer that needs to have different paper size than the default size of the driver. This is configured correctly in Windows. When I call the PrintDialog and select this printer and is not ...
Xaphann's user avatar
  • 3,757
0 votes
0 answers
1k views

I use the following code Dim PrintR_ As Printing.PrinterSettings = ReportViewer1.PrinterSettings PrintR_.PrinterName = "Microsoft XPS Document Writer" ReportViewer1.PrintDialog(PrintR_) However, when ...
Hesham Mohamed's user avatar
0 votes
1 answer
308 views

I'm trying to print an image in the center of the page but I can't come up with any idea. System.Windows.Point printLocation = new System.Windows.Point(50,50); printLocation.X = pageWidth - 50 / 2; ...
Juan Carlos Rodriguez's user avatar
0 votes
1 answer
1k views

I have made a quick app for a dept at work that takes users input text fields and writes them to an excel object. The challenge of the project was that it needed to create the worksheet, write to it, ...
Vermonster's user avatar
-2 votes
2 answers
7k views

I am currently using the below code for printing a pdf file from database. I am using pdfium for viewing the pdf file and for printing I use PrintDialog box. I can print the pdf file in a single copy ...
Aopgatimam's user avatar
0 votes
1 answer
360 views

I have a PrintCapabilities object and now I am trying to check if the printer supports ISOA4 page media size so that I can iterate over the readonly enumeration: PrintDialog print = new PrintDialog();...
Willy's user avatar
  • 10.8k
0 votes
1 answer
3k views

I have a simple PrintDialog (code below). My application is a tray application, meaning it has no windows in it and only contains a few simple right click options from the tray icon. Given a file ...
theostorm's user avatar
-2 votes
1 answer
502 views

I was curious if you could print wirelessley using printDialog? I did a bit of research but could not find any articles relating to this issue. I am rolling with a windows 7. Here is my code is it ...
MSD's user avatar
  • 87
2 votes
0 answers
1k views

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 ...
Leonid's user avatar
  • 81
0 votes
0 answers
552 views

I am getting this error: TicketingSystem' does not contain a definition for 'DVPrintDocument_PrintPage' and no extension method could be found. I am trying to organize my code by putting it in ...
MSD's user avatar
  • 87
1 vote
0 answers
2k views

Using .NET 3.5 and 4.5 I'm able to print a simple canvas with a red rectangle in the centre with no problems using PrintDialog.PrintVisual(). These print jobs are sent to CutePDF and a standard ...
Murphybro2's user avatar
  • 2,861
0 votes
0 answers
490 views

I'm trying to print some user control in wpf. It does work on my computer, but on another computer it doesn't. My computer is windows 10, the other computer is windows 7, both have latest framework ...
Dor Meiri's user avatar
  • 487