Print web page automatically

M

Matthew

I found a script that lets a trusted web site print without the user
confirming it.

<script language="javascript1.2">
<!-- copyright(c) (e-mail address removed)
function print() {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);

execScript("on error resume next: WebBrowser1.ExecWB 6, -1", "VBScript");
execScript('on error resume next: WebBrowser1.outerHTML = ""', 'VBScript');
</script>

I installed XP SP2 on my computer and this does not work any longer. When I
open my web page, instead of just printing it displays the print dialog box.
Does anybody know if there is a workaround?

If this is the wrong forum for this question, could you point me in the
right direction?

Matthew
 
D

dvdberg

Matthew,

I have the same problem. I am building a demo application in IE which
should automatically print without user input.

It is working fine until XP SP1, but in SP2 it is blocked for security
reasons. If you find any work around, can you please share it with me. I
am also looking for a solution to turn it of in sp2.

If I find it, I will share it with you.

Thanks in advance.

Dennis
 
M

Matthew

If you find any work around, can you please share it with me. I
am also looking for a solution to turn it of in sp2.



I will do so. I have a call in to Microsoft SP2 support, it has been
escalated to level 2. They said I should have a response some time today.

Whether or not that response will be helpful remains to be seen.


If I find it, I will share it with you.



That would be nice!



Matthew
 
M

Matthew

I will do so. I have a call in to Microsoft SP2 support, it has been
escalated to level 2. They said I should have a response some time today.

Oops, I misread the e-mail. I thought they said 24 hours. They actually
said 24 business hours! It looks like it will be Thursday before I hear
back.
Don't you love the communication issues with India?

Sorry about that.

Matthew
 
M

Matthew

I got my response from Microsoft and thought you might get a kick out of it
:)
Remember, this is an e-mail from the Higher Level Support Team working for
Microsoft.

Needless to say, I responded with several questions.

Matthew

-------------------------------------

Dear Matthew,

Thank you for contacting Microsoft Windows Online Support Service. My name
is Joanna, and I will be working with you on this case. For your reference,
the Case ID of this service request is SRX040927603294. You can reach me
using the contact information below and the Case ID.

In the case log, you have indicated that you can print directly within SP2.
After installing SP2, there is a print dialog prompting before printing. If
I have misunderstood your concern, please do not hesitate to let me know.

I understand the inconvenience you have encountered. Please be assured that
I will try my best to help you on this issue.

Based on my experience, when we try to print the webpage, if we select
File -> Print, a print dialog will appear. It is by design. For your
reference, I have captured a screenshot of the dialog. Please download it
from this email attachment. Please let me know whether you got the similar
dialog. If you did not receive the similar dialog, please help me capture a
screenshot for my further research:

1. Press the Print Screen key (PrtScn) on your keyboard when the dialog
appears.

2. Click Start, click Run, type MSPAINT, and click OK.

3. In Paint, click Paste under the Edit menu, click Save under the File
menu, type file name for the snap shot, choose JPEG as "Save as type", and
click Save.

4. Please send this file as an email attachment to my account
(e-mail address removed) with the case ID.

If you print webpage by clicking the print icon on Internet Explorer (IE),
there should not be a dialog. Please try to print by clicking the icon. For
your reference, I also captured a screenshot of the icon.

Please try my suggestions and let me know the results at your earliest
convenience. I am always here to be of assistance. If you have any
questions, please feel free to let me know. I look forward to hearing from
you.

Best Regards,

[name protected]

Microsoft Windows Support Professional

---------------------------------------

Satisfied customers are my #1 priority!

Please let my manager or me know what you think of the level of service
provided. You can send feedback to Microsoft Management at
mailto:[email protected]?subject=Microsoft_Windows_Feedback or directly
to my manager, [name protected].
 
D

dvdberg

As usual, microsoft answers do not help you any further....

I did not find any workaround for it yet.

In the meantime I finished my demo program in html/javascript. I chose
not to install Service Pack 2 on the demo machines, but I am confinced
that there should be some registry setting to switch the setting of in
xp sp2.

in the mean time i keep on searching.

greetz.

Dennis



Matthew said:
I got my response from Microsoft and thought you might get a kick out of it
:)
Remember, this is an e-mail from the Higher Level Support Team working for
Microsoft.

Needless to say, I responded with several questions.

Matthew

-------------------------------------

Dear Matthew,

Thank you for contacting Microsoft Windows Online Support Service. My name
is Joanna, and I will be working with you on this case. For your reference,
the Case ID of this service request is SRX040927603294. You can reach me
using the contact information below and the Case ID.

In the case log, you have indicated that you can print directly within SP2.
After installing SP2, there is a print dialog prompting before printing. If
I have misunderstood your concern, please do not hesitate to let me know.

I understand the inconvenience you have encountered. Please be assured that
I will try my best to help you on this issue.

Based on my experience, when we try to print the webpage, if we select
File -> Print, a print dialog will appear. It is by design. For your
reference, I have captured a screenshot of the dialog. Please download it
from this email attachment. Please let me know whether you got the similar
dialog. If you did not receive the similar dialog, please help me capture a
screenshot for my further research:

1. Press the Print Screen key (PrtScn) on your keyboard when the dialog
appears.

2. Click Start, click Run, type MSPAINT, and click OK.

3. In Paint, click Paste under the Edit menu, click Save under the File
menu, type file name for the snap shot, choose JPEG as "Save as type", and
click Save.

4. Please send this file as an email attachment to my account
(e-mail address removed) with the case ID.

If you print webpage by clicking the print icon on Internet Explorer (IE),
there should not be a dialog. Please try to print by clicking the icon. For
your reference, I also captured a screenshot of the icon.

Please try my suggestions and let me know the results at your earliest
convenience. I am always here to be of assistance. If you have any
questions, please feel free to let me know. I look forward to hearing from
you.

Best Regards,

[name protected]

Microsoft Windows Support Professional

---------------------------------------

Satisfied customers are my #1 priority!

Please let my manager or me know what you think of the level of service
provided. You can send feedback to Microsoft Management at
mailto:[email protected]?subject=Microsoft_Windows_Feedback or directly
to my manager, [name protected].
 
D

dvdberg

Matthew,

Did you got any follow-up answer from Microsoft on this subject? I am
curious what they answered on all your questions.

I can not really find any more detailed information on this subject; I
think the issue is not used a lot, or not discovered yet by the most
users which use Service Pack 2 for WinXP.

Kind regards,

Dennis

As usual, microsoft answers do not help you any further....

I did not find any workaround for it yet.

In the meantime I finished my demo program in html/javascript. I chose
not to install Service Pack 2 on the demo machines, but I am confinced
that there should be some registry setting to switch the setting of in
xp sp2.

in the mean time i keep on searching.

greetz.

Dennis



Matthew said:
I got my response from Microsoft and thought you might get a kick out of it
:)
Remember, this is an e-mail from the Higher Level Support Team working for
Microsoft.

Needless to say, I responded with several questions.

Matthew

-------------------------------------

Dear Matthew,

Thank you for contacting Microsoft Windows Online Support Service. My name
is Joanna, and I will be working with you on this case. For your reference,
the Case ID of this service request is SRX040927603294. You can reach me
using the contact information below and the Case ID.

In the case log, you have indicated that you can print directly within SP2.
After installing SP2, there is a print dialog prompting before printing. If
I have misunderstood your concern, please do not hesitate to let me know.

I understand the inconvenience you have encountered. Please be assured that
I will try my best to help you on this issue.

Based on my experience, when we try to print the webpage, if we select
File -> Print, a print dialog will appear. It is by design. For your
reference, I have captured a screenshot of the dialog. Please download it
from this email attachment. Please let me know whether you got the similar
dialog. If you did not receive the similar dialog, please help me capture a
screenshot for my further research:

1. Press the Print Screen key (PrtScn) on your keyboard when the dialog
appears.

2. Click Start, click Run, type MSPAINT, and click OK.

3. In Paint, click Paste under the Edit menu, click Save under the File
menu, type file name for the snap shot, choose JPEG as "Save as type", and
click Save.

4. Please send this file as an email attachment to my account
(e-mail address removed) with the case ID.

If you print webpage by clicking the print icon on Internet Explorer (IE),
there should not be a dialog. Please try to print by clicking the icon. For
your reference, I also captured a screenshot of the icon.

Please try my suggestions and let me know the results at your earliest
convenience. I am always here to be of assistance. If you have any
questions, please feel free to let me know. I look forward to hearing from
you.

Best Regards,

[name protected]

Microsoft Windows Support Professional

---------------------------------------

Satisfied customers are my #1 priority!

Please let my manager or me know what you think of the level of service
provided. You can send feedback to Microsoft Management at
mailto:[email protected]?subject=Microsoft_Windows_Feedback or directly
to my manager, [name protected].
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top