VertisMedia
asked on
IE Print compand in .net does not work when running from program files app folder
I have narrowed down an issue that is really really interesting. With IE6 installed our application works just fine. It will use the .ExecWB(SHDocVw.OLECMDID.O LECMDID_PR INT2 command just fine while running from the program files installed location. Once Installing IE7 or greater our application will not fire the .ExecWB(SHDocVw.OLECMDID.O LECMDID_PR INT2 command or the AxSHDocVw.AxWebBrowser.Pri ntDocument (opt) comand or mshtml.IHTMLDocument2.exec Command("P rint", ShowUI, Nothing) will not fire from within the program files folder in the installed application directory. IT does work from visual studio in any mode. It does work from any other folder. I have a much smaller application that works anywhere but it also does not work in that folder it works in a sub folder but not that folder.
c:\program files\app\code\app.exe NOT WORKING
c:\program files\app\code\testapp.exe NOT WORKING
c:\program files\app\code\test\testap p.exe WORKING
c:\dev\test\testapp.exe WORKING
c:\dev\app\code\app.exe WORKING
c:\dev\app\code\app.exe Visual Studio WORKING
c:\dev\app\code\app.exe Visual Studio Debug WORKING
c:\dev\app\code\app.exe Visual Studio Relese WORKING
Something is blocking the brint funtionality from working from within that folder after IE7 is installed.
Im at a loss.
I have a included the print code I'm basing my print code off of. This is also the appliciton that I used to test and prove that it is all from that one folder. that it does not work. I also have a link to another thread that had the same issue but he did not realize that the issue was connected to his folder and not visual studio which i also thought for some time.....
So please any help would be great.
http://www.codeproject.com/KB/printing/printhml.aspx
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2903298&SiteID=1
c:\program files\app\code\app.exe NOT WORKING
c:\program files\app\code\testapp.exe
c:\program files\app\code\test\testap
c:\dev\test\testapp.exe WORKING
c:\dev\app\code\app.exe WORKING
c:\dev\app\code\app.exe Visual Studio WORKING
c:\dev\app\code\app.exe Visual Studio Debug WORKING
c:\dev\app\code\app.exe Visual Studio Relese WORKING
Something is blocking the brint funtionality from working from within that folder after IE7 is installed.
Im at a loss.
I have a included the print code I'm basing my print code off of. This is also the appliciton that I used to test and prove that it is all from that one folder. that it does not work. I also have a link to another thread that had the same issue but he did not realize that the issue was connected to his folder and not visual studio which i also thought for some time.....
So please any help would be great.
http://www.codeproject.com/KB/printing/printhml.aspx
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2903298&SiteID=1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ieframe.dll.zip