Print multiple Font Sizes on same page

Sep 25 2009 8:32 AM
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

Answers (1)