CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    153

    Printing XML/XSL with ShellExecute

    Hello,

    is there any way to print a XML-Document associated with Stylesheet ( XSL ) via
    ShellExecute ?

    i.e. like HTML
    ShellExecute( hWnd, "print", "File.html", NULL, "Dir", SW_... );

    ... and if its possible, is there any way to print it directly, without letting
    the PrintDialog popping up.

    Any help is welcome.

    Bye,
    Matze

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    153

    Re: Printing XML/XSL with ShellExecute

    ... sorry,
    but just to keep thread alive.

    Matze

  3. #3
    Join Date
    Aug 2001
    Location
    Germany
    Posts
    1,384

    Re: Printing XML/XSL with ShellExecute

    One way would be to use IE to print it. Make a window that hosts the BHO, and then load the document & then Print it. I think you can do it without making the window holding the BHO visible. I am not sure if it possible not to display the Print Dialog...
    Hope this helps,
    Regards,
    Usman.

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    153

    Re: Printing XML/XSL with ShellExecute

    Hi usman,

    sorry for responding but now, but i was very busy the last weeks.
    But now i have time to deal with this subject again.

    The thing with the PrintDialog is exactly my problem, as printing must be done completely automatically, because the user has in generell not the opportunity to confirm requests of the software etc..

    So if theres any other solution, i would be very appreciated.

    I thought about an invisible MFC-Html View (CHtmlView), which does the Job for me.
    Any Hints how to do this ? Or is ist rather a bad idea ?
    I dont know.
    But again: Any Hint is very welcome.

    Regards,
    Matze

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