178 questions
0
votes
0
answers
80
views
How do I generate print preview in printdialog box in vb.net
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 ...
1
vote
0
answers
56
views
C# PrintPreviewControl Ignores Printer Page Settings?
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, ...
0
votes
0
answers
76
views
Printing 4 cells from every row
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
...
0
votes
1
answer
45
views
C++Builder FMX TPrintDialog->Copies does not change after executing dialog at runtime
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 ...
1
vote
1
answer
400
views
File Name Issue in Edge Browser's Print Dialog Feature (index.pdf)
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 ...
0
votes
0
answers
88
views
Printdoalog prints in bold on Windows 10 but does not print in bold on Windows 11
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 ...
2
votes
0
answers
962
views
How can we set the settings for printing in the new print preview of windows 11?
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 ...
0
votes
0
answers
167
views
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 ...
0
votes
1
answer
308
views
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 ...
0
votes
1
answer
671
views
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 ...
0
votes
1
answer
175
views
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<Datei> dateienList =...
3
votes
1
answer
377
views
C# Winform PrintDialog Pages popup
in C# Winform, i'm sending an Image to the printer using the PrintDialog... using this code:
private void PrintSnippedImage()
{
PrintDocument pDoc = new PrintDocument();
...
0
votes
0
answers
545
views
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 "...
-1
votes
1
answer
609
views
Why is my PrintDialog always opening "save as" and not print directly?
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;
...
0
votes
0
answers
295
views
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....
-1
votes
1
answer
66
views
WPF: UIElement gone when printed
I have a very simple WPF XAML code:
<Grid Name="MainGrid" Margin = "20 0 20 0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
&...
-2
votes
1
answer
1k
views
how to print a PDF document In Printdialog Control using c# winforms [duplicate]
I use this code to print pdf to default printer.
public static void PrintPDFByProcess()
{
try
{
using (Process p = new Process())
{
p....
2
votes
1
answer
504
views
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
0
votes
1
answer
231
views
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?
1
vote
1
answer
2k
views
Error when setting a PrintDialog's PrintQueue to a networked printer - C# WPF XAML
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 ...
0
votes
1
answer
1k
views
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 = ...
0
votes
1
answer
345
views
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. ...
0
votes
0
answers
78
views
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 ...
0
votes
1
answer
589
views
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 ...
0
votes
1
answer
368
views
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) => {
...
2
votes
3
answers
2k
views
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 ...
2
votes
0
answers
340
views
System.Windows.Controls.PrintDialog throws exception when I run under a different Windows Account
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 ...
0
votes
1
answer
528
views
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 ...
2
votes
0
answers
438
views
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 ...
1
vote
0
answers
599
views
Print FixedDocument without using dialog for directory
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 ...
0
votes
0
answers
220
views
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 ...
-1
votes
1
answer
616
views
How to find & install a printer that on same WiFi network?
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 ...
4
votes
0
answers
490
views
Print range is not working even if it's values are set
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 ...
2
votes
1
answer
580
views
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 ...
0
votes
0
answers
80
views
Print Ribbon using PrintDialog
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 ...
0
votes
2
answers
2k
views
VB .Net PrintDialog returns wrong printer name
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 ...
0
votes
3
answers
190
views
WPF/MVVM. Print multiple pictures in a single process
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 ...
0
votes
1
answer
175
views
PrintDialog altering culture in WPF
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-...
0
votes
1
answer
259
views
PrintDialog does not pull paper size of printer set in windows if printer not default
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 ...
0
votes
0
answers
1k
views
directly print when using code in VB.NET
I use the following code
Dim PrintR_ As Printing.PrinterSettings = ReportViewer1.PrinterSettings
PrintR_.PrinterName = "Microsoft XPS Document Writer"
ReportViewer1.PrintDialog(PrintR_)
However, when ...
0
votes
1
answer
308
views
Set image position to page center
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; ...
0
votes
1
answer
1k
views
Using Print Dialog with Excel Object, Will Only Print to Default Printer Despite Dialog Selection
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, ...
-2
votes
2
answers
7k
views
how to print multiple copies in c#
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 ...
0
votes
1
answer
360
views
C# PrintCapabilities check whether ISOA4 page media size is supported by printer
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();...
0
votes
1
answer
3k
views
PrintDialog shows behind all open windows
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 ...
-2
votes
1
answer
502
views
Wireless Printing in PrintDialog C#
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 ...
2
votes
0
answers
1k
views
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 ...
0
votes
0
answers
552
views
"Does Not Contain Definition and No Extension Method Found " But Exists in another Class
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 ...
1
vote
0
answers
2k
views
C# .net PrintTicket XML is not well-formed (using badge printer)
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 ...
0
votes
0
answers
490
views
System.Windows.Controls.PrintDialog is not working
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 ...