Click here to Skip to main content
15,886,038 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which one is better, forcing an enabled=true at each call or check it with an if statement? Pin
PIEBALDconsult25-Sep-09 7:20
mvePIEBALDconsult25-Sep-09 7:20 
QuestionProblems with ID Automation Pin
Qendro25-Sep-09 2:40
Qendro25-Sep-09 2:40 
GeneralRe: Problems with ID Automation Pin
musefan25-Sep-09 2:56
musefan25-Sep-09 2:56 
GeneralRe: Problems with ID Automation Pin
Qendro25-Sep-09 3:04
Qendro25-Sep-09 3:04 
QuestionPrinting multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 2:37
jameschristianii25-Sep-09 2:37 
AnswerRe: Printing multiple font sizes on the same page... Pin
musefan25-Sep-09 2:54
musefan25-Sep-09 2:54 
GeneralRe: Printing multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 3:07
jameschristianii25-Sep-09 3:07 
GeneralRe: Printing multiple font sizes on the same page... Pin
musefan25-Sep-09 4:24
musefan25-Sep-09 4:24 
jameschristianii wrote:
//Fit as many characters as we can into the print area

e.Graphics.MeasureString(_text, PrinterFont, new SizeF(printWidth, printHeight), format, out chars, out lines);

//Print the page
e.Graphics.DrawString(_text, PrinterFont, Brushes.Black, printArea, format);


This is where your restriction is. You need to change the printer font here depending on what you want to print. Your problem is you are only using one string of text, if you want different parts to be different font you need to break it up. Try having a collection property with a list of structs containing text and fonts, and print each as if it was a new line.

Life goes very fast. Tomorrow, today is already yesterday.

AnswerRe: Printing multiple font sizes on the same page... Pin
Dave Kreskowiak25-Sep-09 4:27
mveDave Kreskowiak25-Sep-09 4:27 
GeneralRe: Printing multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 4:32
jameschristianii25-Sep-09 4:32 
GeneralRe: Printing multiple font sizes on the same page... Pin
Dave Kreskowiak25-Sep-09 5:19
mveDave Kreskowiak25-Sep-09 5:19 
GeneralRe: Printing multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 5:51
jameschristianii25-Sep-09 5:51 
AnswerRe: Printing multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 17:44
jameschristianii25-Sep-09 17:44 
AnswerRe: Printing multiple font sizes on the same page... Pin
jameschristianii26-Sep-09 5:30
jameschristianii26-Sep-09 5:30 
Questionsingle User single login Pin
Shalini_U25-Sep-09 2:37
Shalini_U25-Sep-09 2:37 
AnswerRe: single User single login Pin
musefan25-Sep-09 2:47
musefan25-Sep-09 2:47 
GeneralRe: single User single login Pin
Shalini_U25-Sep-09 3:16
Shalini_U25-Sep-09 3:16 
GeneralRe: single User single login Pin
Dave Kreskowiak25-Sep-09 4:20
mveDave Kreskowiak25-Sep-09 4:20 
GeneralRe: single User single login Pin
musefan25-Sep-09 4:28
musefan25-Sep-09 4:28 
QuestionUpload data to Amibroker? Pin
$uresh $hanmugam25-Sep-09 2:32
$uresh $hanmugam25-Sep-09 2:32 
QuestionDataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 0:13
Doktor25-Sep-09 0:13 
AnswerRe: DataTableColumn.AutoIncrementSeed value Pin
S.Dhanasekaran25-Sep-09 1:04
S.Dhanasekaran25-Sep-09 1:04 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 1:15
Doktor25-Sep-09 1:15 
AnswerRe: DataTableColumn.AutoIncrementSeed value Pin
Dave Kreskowiak25-Sep-09 3:59
mveDave Kreskowiak25-Sep-09 3:59 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 4:20
Doktor25-Sep-09 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.