Printing within .NET C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vninja
    New Member
    • Oct 2006
    • 40

    Printing within .NET C++

    ok i posted this under the C++ part of the forum but maybe this will be more relevant.
    i need to print a file (letter.htm) from the printer using C++. i have the BORLAND v6 C++ complier and i'm just having a difficult time finding out how to print from the cmd window. this program is accually a little shortcut for my job (just want to cut corners here and there, so instead of changing the name and date i can just change the name in the program and it will print automatically, and the macros are disabled in the word on our computers) and i need to get to the printer.

    the basic structure of my program looks like this

    open htm file
    get the name
    change the name in the file
    close the file

    and now i want to add another step
    to print the file right before it repeates

    how would i print an HTML file with C++ not using any GUI or printdialogues?
    or how would i bring up the shellExecute() function within the .Net framework?
    or is therer any similar function/command that i could use to print?
    thx V
Working...