473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB 6/.NET Code on 2003 Server won't print html file from WebBrowser or axDHTMLEDLib

I have code that works fine on my XP machine. It loads an HTML document into the VB 6 WebBrowser control and then uses the following command to print the document without any print dialog box:

mfrmPrint.WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, PRINT_DONTBOTHERUSER_WAITFORCOMPLETION

I have also just implemented a .NET C# DLL that uses the axDHTMLEDLib. It also works fine on my XP computer.

It seems like a simple IE or machine configuration problem. When I open the Internet Explorer 6 browser, the following message is displayed.

Internet Explorer Enhanced Security Configuration is enabled

I have tried removing this (apparently some present IE security settings) and it didn't do the trick.

Thanks for any ideas.
Aug 10 '09 #1
4 2909
Plater
7,872 Expert 4TB
Does your server have the vbrun6.dll? Is there a benefit to not using the .NET webbrowser control in favor of the vb6 control?
Aug 10 '09 #2
Various VB 6 programs are running fine on the server. I put the code in VB 6 because there seemed to be more examples of working WebBrowser code. I could try doing it in .NET, but I still think the problem isn't the code but some configuration on the Windows 2003 Server...
Aug 11 '09 #3
I get no errors, but nothing is sent to the Printer Queue (I have it paused so I'm sure).

I did disable Enhanced Security, but no change. I have had an issue in the past with this code getting errors and fixed it by reinstalling IE 6 using method 3 in this MS article:

How to reinstall or repair Internet Explorer in Windows Vista and Windows XP

I just discovered that the Server has IE 7 installed and I have IE 6 on my XP machine (It also works on a co-worker's XP with IE 6 machine). I believe the issue is with IE 7 and probably specifically it's security.

I have tried all of the suggestions I could get from this article to no avail (even re-booted after making the registry changes):

Visual Basic 6 And Internet Explorer 7

Added the following to Trusted Sites: IP Address of Printer Port

I think my solution may just be to uninstall IE 7 and install IE 6... :~(
Aug 13 '09 #4
Does it make any difference that the 2003 Server is also a VMware environment?
Aug 27 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Hasani | last post by:
I tried using webBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER) but it returns asynchronously. Is there anyway I can know when the document has...
19
by: Mark Gross | last post by:
I am attempting to programatically drive a Lotus Notes web application from a VB.NET database application (who wants to rekey information in one database into someone else's web page for entry to...
0
by: Thara DK | last post by:
i have the Following method to Print an Html frames and if i ran this method through a loop i get the follwing error.... Sub PrintFrame(toFrame, tnPrintOption) Dim loWebBrowser toFrame.focus ...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
24
by: Skijor | last post by:
I have inherited a php script that nests php, javascript, and html. How do I clean up code like this: I think I can move the javascript into a seperate .js file at the least. What about the...
2
by: hup | last post by:
One of my Linux (CentOS) server stop interpret php code any more. I did try to compile and installed other version of php, but it's still not working. # cat /tmp/phpinfo.php <? phpinfo() ?>...
6
by: Just Me | last post by:
Any ideas on this. I am trying to loop through an xml document to remove attributes, but Im having so much trouble, any help is appreciated //THIS IS THE EXCEPTION ( SEE CODE LINE WHERE FAILURE...
3
by: Nordiek, Christof | last post by:
I have an applaction, that is an addin for Outlook. It opens a form with a WebBrowser control wich then shows a page from a Webserver. It works fine, but when I installed it on Windows Server 2003...
2
by: Artie | last post by:
Hi, I've searched the web but can't find a solution to an apparently really simple problem. My app contains an HTML string and I need to be able to invoke the Print Dialog to print the HTML...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.