1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML File printing

Discussion in 'C' started by himanshujalota, Apr 14, 2007.

?

Is it possible to print a html file kept in any location in our PC in C

Poll closed Apr 17, 2007.
  1. YES

    2 vote(s)
    100.0%
  2. NO

    0 vote(s)
    0.0%
  1. himanshujalota

    himanshujalota New Member

    Joined:
    Apr 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    :eek: hey friends cud anyone tell me the code for printing a HTML file kept in any location in my computer from command prompt , but should be a c or a C++ or MFC code :)
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Do you need a code for printing or you need the command line options to print.
     
  3. himanshujalota

    himanshujalota New Member

    Joined:
    Apr 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    ya i need the code, it will be grateful of u if u can provide me with it.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Some default app to provide the execution of the print verb.

    I will explain.

    Search in Registry the .html Key under HKCR
    See the value of Default
    Search that under HKCR
    Open the html -> Shell -> Print -> and get the default value of it and fire the print job replacing the file name with %1 or something.
     

Share This Page