Click here to Skip to main content
15,844,387 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
Anıl Yıldız25-Sep-09 8:02
Anıl Yıldız25-Sep-09 8:02 
GeneralRe: Which one is better, forcing an enabled=true at each call or check it with an if statement? Pin
freakyit25-Sep-09 8:07
freakyit25-Sep-09 8:07 
GeneralRe: Which one is better, forcing an enabled=true at each call or check it with an if statement? Pin
freakyit25-Sep-09 8:05
freakyit25-Sep-09 8:05 
GeneralRe: Which one is better, forcing an enabled=true at each call or check it with an if statement? Pin
PIEBALDconsult25-Sep-09 8:20
mvePIEBALDconsult25-Sep-09 8:20 
QuestionProblems with ID Automation Pin
Qendro25-Sep-09 3:40
Qendro25-Sep-09 3:40 
GeneralRe: Problems with ID Automation Pin
musefan25-Sep-09 3:56
musefan25-Sep-09 3:56 
GeneralRe: Problems with ID Automation Pin
Qendro25-Sep-09 4:04
Qendro25-Sep-09 4:04 
QuestionPrinting multiple font sizes on the same page... Pin
jameschristianii25-Sep-09 3:37
jameschristianii25-Sep-09 3:37 
Hello all! It's now 8:10 am and I have been trying multiple solutions since 9:00 pm. I figured this would be a simple task and wow, have I been proven wrong.
First, I have been utilizing a print class (subclass) to handle my printing needs. I've been asked to have different font sizes utilized for the same page. Sounds simple...um, no. In VB6 I remember doing anything I wanted in printing! This is the only app I've had that required printing to a receipt printer or a laser printer.

I was sending multiple print calls to separate my font size parameters:

string text = "**ONLINE ORDER**\r\n\r\n" +
    "Order Ready at:\r\n";
var printHead = new ReceiptPrint();
printHead.TextToPrint = text;
printHead.Print();

text = deliveryDate.ToShortDateString() + "\r\n" + deliveryTime.ToShortTimeString() + "\r\n";
var printDT = new ReceiptPrint();
printDT.PrinterFont = new Font("Arial", 20);
printDT.TextToPrint = text;
printDT.Print();


Unfortunately, this will print a separate page for each printer call. Is there anything I can research (specifically) to print text with varied font sizes on the same page? I know it has to be possible because apps print multiple font sizes, colors, etc. all the time. I do not want the print dialogue box to appear, this needs to print to direct to default printer.

Can anyone offer some insight or point me in the right direction, please?

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

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.