CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2005
    Posts
    73

    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 ""
    ....

    .EndDoc

    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

    possible?
    Tks
    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

Featured