Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.
Questions tagged [printdocument]
289 questions
0
votes
2 answers
Threading issue while printing pdf through c#.net code?
I am trying to print pdf from windows application in my project with iTextSharp dll..
But,The methods I have used till now doesn't seems to be reliable.(Sometimes it work and sometime it doesn't)
I am combining the whole process in a Process class…

Rahul Ranjan
- 1,028
- 1
- 10
- 27
0
votes
1 answer
Printing an RTF file using Printdialog in VB.NET
I have this code:
Private printDocument1 As New PrintDocument()
Private stringToPrint As String
Private Sub ReadFile()
Dim docName As String = "print_doc.rtf"
Dim docPath As String = fsPathPrintDoc
printDocument1.DocumentName = docName
…

Django Anonymous
- 2,987
- 16
- 58
- 106
0
votes
1 answer
Issues with XPSDocumentWriter and PrintDialog.PrintDocument
Our company is developing an application (WPF, targeted to .NET 3.5) with the WPF Diagramming Components from MindFusion.Apparently, printing and saving XPS Documents results in various errors on different systems.
I reduced the problem to a single…

Alex Maker
- 1,529
- 2
- 19
- 27
0
votes
1 answer
How to advance to a newpage with printdocument in .NET?
Possible Duplicate:
What does Hasmorepages PrintPageEventArgs property do exactly?
I would like to advance my printing to a newpage without leaving the print event.
So far, what I found out is that you can't and you have to leave print event.…

ThN
- 3,235
- 3
- 57
- 115
0
votes
2 answers
Need to print a PDF from .net and select different trays for output
My company is moving to a new system which has a very poor printing system in place but it does create PDF's on the file system.
My Boss has asked me to create an application to print all the PDF's based on a JOB number.
I've gotten the filesystem…

JoshF
- 159
- 4
- 15
-1
votes
1 answer
Drawimage(Image, Rectangle) crops original Image
I'm trying to print an Image from a file, but Graphics.DrawImage crops the image when I try to print it.
Example:
When I try to print the Mona Lisa the output is cropped
This seemes to be the same problem but the solution doesn't work for…

Leres75
- 1
- 1
-1
votes
1 answer
Print value on the new page, VB.net vs2012?
i want to print variable value to next page (new page).here's my code
Imports System.Drawing.Printing
Public Class Form1
Dim ppd As New PrintPreviewDialog
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
…

Samuel Lawiet
- 1
- 2
-1
votes
1 answer
Print PDF File using Custom Printer in Winforms
I have a PDF file and I want it to print on click of a button. Below is the code for the same -
private void SendToPrinter(string filename)
{
using (PrintDialog Dialog = new PrintDialog())
{
Dialog.ShowDialog();
…

Ranjan Sikdar
- 21
- 1
- 8
-1
votes
1 answer
Printing DatagridView Data on Multiple page using printDOcumnet C#
So, i am trying to print datagridview data, but the problem is after the page heights crosses the limit,it does't move to next page to print the remaining data. I tried adding condition by counting the items but no success. Kindly tell me whats…

Bilal
- 21
- 1
- 9
-1
votes
3 answers
C# PrintDocument print image
I have been trying to print a barcode image via the label printer. but the image that is printing using the SATO CG408 printer is very small. Here is the code as it is currently.
static void Main(string[] args)
{
try
{
…

dogwasstar
- 852
- 3
- 16
- 31
-1
votes
1 answer
WPF Business application form development
I volunteer at a local food pantry. Currently we have an application for that we manually fill out with some detail information, I know that I can develop a WPF application to collect the necessary data. We are required to keep physical copies of…

Cass
- 537
- 1
- 7
- 24
-1
votes
1 answer
how to print tablelayoutpanel with label in windows form
I have a windows form that contains a table, two labels above it and many other components underneath
By using the PrintDocument I would like to print the table with its title, and only that without showing the other components.
This is my form
The…

Sujood
- 15
- 5
-1
votes
2 answers
Can I assign delegate sub to AddHandler using AddressOf?
Edit: my orginal question was too confusing.
Public Class PrintResults
Public Sub ResultsToPS(ByVal lis As List(Of FileData), ByVal PSPathName As String)
Me.List = lis
'setup report writer
Dim rep As New…

D_Bester
- 5,723
- 5
- 35
- 77
-1
votes
1 answer
VB.Net PrintDocument is printing multiple pages on a single page (on top of each other) instead of on separate pages
This code is printing all the rows in a DataGridView, printing them on multiple pages if need be.
I made sure to use e.HasMorePages properly, and even stepped through the code, and it is properly exiting the PrintPage routine at the end of page 1,…

kentechsoftware
- 1
- 1
-1
votes
2 answers
How to increase the darkness of the text when printing in Win Form in C#
I'm trying to print a document in C#. However, the Black color of the text isn't good. It's dim. How can I adjust the quality of the text color in order to make it darker and clearer?
Here is my code :
Font font = new Font("Courier New", 18);
…

Phi Nguyen
- 3,046
- 14
- 26