November-06's Profile
Reputation: 45
Craftsman
- Group:
- Active Members
- Active Posts:
- 350 (0.4 per day)
- Joined:
- 04-January 11
- Profile Views:
- 6,344
- Last Active:
Yesterday, 12:04 PM- Currently:
- Offline
Previous Fields
- Country:
- Who Cares
- OS Preference:
- Who Cares
- Favorite Browser:
- Who Cares
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Crystal Report prevent line overlap on section
Posted 20 May 2013
I already found the cause of the problem. The lines extending to the Group footer are not from the details section. Rather, they are from the Page Header Section. Instead of creating lines that extend from the page header section to the detail section, I created them separately. That solved the problem. Thanks for reading this post. -
In Topic: Printing Automation
Posted 16 May 2013
Skydiver, on 15 May 2013 - 05:34 AM, said:That is used for computing the number of lines that can fit into a page and whether more pages are needed because the sample is printing out a set of strings to the printer. In your case, though, you said that you are printing PDFs, so you don't need to compute paging. You simply need use the library you are using to render PDFs whether more pages are needed.
Edit after: are ask the report that you are printing how many pages it has.
What do I do after getting the number of pages? Is there a way I can get the page number of the page being printed in the PrintPage event so that I can do the following:
if (PageBeingPrinted<TotalPageCount) e.HasMorePages = true; else e.HasMorePages = false;
Also, I get a blank page when I commented the following lines:
// Calculate the number of lines per page. linesPerPage = e.MarginBounds.Height; printFont.GetHeight(e.Graphics); //Print each line of the file. while (count < linesPerPage && ((line = streamToPrint.ReadLine()) != null)) { yPos = topMargin + (count * printFont.GetHeight(e.Graphics)); e.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, new StringFormat()); count++; } //If more lines exist, print another page. if (line != null) e.HasMorePages = true; else e.HasMorePages = false;
What should I replace these lines with? I understand that in these line, data is printed line by line. What do I do in the case of a PDF file? -
In Topic: Printing Automation
Posted 15 May 2013
Skydiver, on 13 May 2013 - 08:20 PM, said:Huh? Nothing in the sample code sets a font in the PrintPage event here: http://msdn.microsof....printpage.aspx
How did you come to a conclusion that PrintPage event needs a font?
What does the following line do then?
printFont = new Font("Arial", 10);
Also, how will I determine the number of lines per page?
The page break depends on the conditions inside my Crystal Report with Groups. -
In Topic: Printing Automation
Posted 13 May 2013
I am trying to use PrintDocument but it in the PrintPage Event, it is asking for font. I am printing a PDF file and I want to retain the font used in the file. Currently, I am not sure of what to use to achieve this functionality. -
In Topic: Printing Automation
Posted 13 May 2013
Thanks for the reply guys. Is there a way to print multple copies and set collation using only PrintDocument?
I can't use the PrintDialog for my requirements.
I am actually printing about 300 files at one click. The files will be printed with the same number of copies (usually three). If a file has multiple pages, it will be printed with Collated property set to true else false. I need the collation set to suit the functionality of the new HP printer with an automated stapling capability.
My Information
- Member Title:
- D.I.C Regular
- Age:
- 22 years old
- Birthday:
- October 17, 1990
- Gender:
-
- Interests:
- Programming, Playing Chess
- Programming Languages:
-
C#.NET
VB.NET
ASP.NET
LINQ
VB 6.0
Java
C
MATLAB
Contact Information
- E-mail:
- Private
- Yahoo:
-
sixth_of_november@yahoo.com
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
November-06 has no profile comments yet. Why not say hello?