Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing to the printer using WIN32 API

Printing to the printer using WIN32 API

Scheduled Pinned Locked Moved Visual Basic
helpjson
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sim_san
    wrote on last edited by
    #1

    Hi Guys, I've got a problem while using APIs for printing text . The problem: Every consecutive newline of text needs to be printed with different fontsize and also some lines need to printed in bold. Well I have been using 'WritePrinter API'. (its one the APIs required for printing with WIN32 APIs); Are there any APIs that manipulate the printers fontsize,fontbold ,etc output. API wizards kindly help... -SimSan

    B 1 Reply Last reply
    0
    • S sim_san

      Hi Guys, I've got a problem while using APIs for printing text . The problem: Every consecutive newline of text needs to be printed with different fontsize and also some lines need to printed in bold. Well I have been using 'WritePrinter API'. (its one the APIs required for printing with WIN32 APIs); Are there any APIs that manipulate the printers fontsize,fontbold ,etc output. API wizards kindly help... -SimSan

      B Offline
      B Offline
      BlackDice
      wrote on last edited by
      #2

      In between lines try Printer.Font.** = ?? Printer.Font.** = ** or Printer.FontBold = true Printer.FontSize = 12 Note: even though members don't show up with Intellisense when you hit the period doesn't mean that they aren't there hope this helps If it's broken, I probably did it bdiamond

      S 1 Reply Last reply
      0
      • B BlackDice

        In between lines try Printer.Font.** = ?? Printer.Font.** = ** or Printer.FontBold = true Printer.FontSize = 12 Note: even though members don't show up with Intellisense when you hit the period doesn't mean that they aren't there hope this helps If it's broken, I probably did it bdiamond

        S Offline
        S Offline
        sim_san
        wrote on last edited by
        #3

        Well I am printing a page directly to the printer bypassing the driver. WritePrinter is one of the APIs used just to do that job.My collegue calls it DOS printing; if that sounds familiar. Printing with Printer object wouldnt give a draft mode print....would it???? I came across SelectObject API ,but still I dont get the required output. -SimSan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups