Questions tagged [printdocument]

Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.

276 questions
-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,040
  • 5
  • 29
  • 71
-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,…
-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
  • 2,919
  • 11
  • 24
-1
votes
1 answer

Printing functions in different class

I need a small help. I want to make a simple class which have to be supplied only the data and the document is printed. I want to put all settings and graphics in one class and just call print function. My printdocument class looks something like…
Dester Dezzods
  • 919
  • 4
  • 14
  • 32
-2
votes
1 answer

PrintDocument printing blank pages?

I am trying to print a pdf document and save it to a file when I receive the prompt to save the document. The file is generated with the right number of pages but all pages are blank. What am I missing in the PrintPage handler below? Thanks for…
Jyina
  • 2,042
  • 7
  • 35
  • 67
-2
votes
1 answer

Print to file in C# using Print Document

i am creating C# Application in which i am using external class to print dataGridView. with this class i am able to print document pdf but i am unable to save the file to disk. i know this can be achieved by…
Axad
  • 1
  • 7
1 2 3
18
19