CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Jan 2005

    change font type in specific line when print doc

    I use a printer object.

    pseudo code:

    To the default the font is Consolas, size 8

    With Printer

    .Font = "CONSOLAS"
    .Font.Size = 9

    .Print "------------------------------------------------------------"
    .Print ""
    .Print "ABC"
    .Print ""
    .Print "------------------------------------------------------------"
    .Print ""


    end with

    Now i need to use a diffrent font name and size (arial size 8) only for the line ABC, end reuse for the all lines the default font type name and size

    Last edited by sal21; October 20th, 2021 at 09:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width