When I was using windows Forms, there were provisions for printing the contents of the Webbrowser control-- you could even show the print and print preview buttons for the end-user-- Is this possible for the Wpf Webbrowser and if so how?
            Asked
            
        
        
            Active
            
        
            Viewed 348 times
        
    2
            
            
         
    
    
        Nagama Inamdar
        
- 2,851
- 22
- 39
- 48
 
    
    
        Munashe
        
- 71
- 1
- 8
1 Answers
0
            First, you need to get to the underlying WebBrowser ActiveX Control. Here is how it can be done for WPF WebBrowser. Then, you call IWebBrowser2::ExecWB to execute OLECMDID_PRINT or OLECMDID_PRINTPREVIEW commands. Note, these commands are asynchronous. If you need to track when the printing has completed (spooled), check this.
 
    