178 questions
0
votes
0
answers
76
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 ...
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
...
1
vote
1
answer
391
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 ...
2
votes
0
answers
959
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
1
answer
306
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
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 =...
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 "...
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....
-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....
0
votes
1
answer
229
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?
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
0
answers
76
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
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
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 ...
2
votes
0
answers
434
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 ...
0
votes
0
answers
218
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 ...
4
votes
0
answers
486
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 ...
0
votes
0
answers
79
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
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
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
1
answer
302
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; ...
-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
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
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 ...
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 ...