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. C / C++ / MFC
  4. create a text (letter) to be printed from a dialog box

create a text (letter) to be printed from a dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialannouncement
2 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.
  • Q Offline
    Q Offline
    Qadddd
    wrote on last edited by
    #1

    Hello, In fact, I have a dialog box where I retrieve several information (name, address, etc), and I would like to create a letter (so a text document) using these informations and print it directly (no storage and differed print, but asking for printer ...). The possibility to have different fonts/size in the letter, to be able to choose the printer, etc would be great. Could someone indicate me the different steps (how to create document, how update it with variables linked to the dialog box, how ask for the printer, how to print it, how to change fonts, colors, etc) to arrive at this result . At least a draft, i will look deeper by myself after. Thanks in advance DD :confused:

    J 1 Reply Last reply
    0
    • Q Qadddd

      Hello, In fact, I have a dialog box where I retrieve several information (name, address, etc), and I would like to create a letter (so a text document) using these informations and print it directly (no storage and differed print, but asking for printer ...). The possibility to have different fonts/size in the letter, to be able to choose the printer, etc would be great. Could someone indicate me the different steps (how to create document, how update it with variables linked to the dialog box, how ask for the printer, how to print it, how to change fonts, colors, etc) to arrive at this result . At least a draft, i will look deeper by myself after. Thanks in advance DD :confused:

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Some other folk posted a message some days ago about using a hidden CRichEditCtrl for printing purposes. Doing a quick search on the net yielded this article. Also, creating a simple RFC on the fly is easy. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      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