Unable to print from IE6



bouncy
07-09-2005, 10:10 PM
When I attempt to print a page displayed on IE6 i get the following message:

An error has occured in the script of this page.

Line 228
Char 1
Error Interface not registered
Code 0
URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg

Do you want to keep running scripts on this page.

This only started appearing recently and I knowingly have made no changes to
my computer. Previously I had no problems. I am running V6.0 2900
2180.xpsp_sp2_gdr. Thanks

PA Bear
07-09-2005, 10:10 PM
Try reinstalling Windows 5.6 Scripting Engine:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
--
~Robear Dyer (PA Bear)
MS MVP-Windows (IE/OE) & Security

bouncy wrote:
> When I attempt to print a page displayed on IE6 i get the following
> message:
>
> An error has occured in the script of this page.
>
> Line 228
> Char 1
> Error Interface not registered
> Code 0
> URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
>
> Do you want to keep running scripts on this page.
>
> This only started appearing recently and I knowingly have made no changes
> to my computer. Previously I had no problems. I am running V6.0 2900
> 2180.xpsp_sp2_gdr. Thanks

bouncy
07-09-2005, 10:10 PM
I tried this but see no difference after dowloading and installing. Does the
file automatically install itself in the correct place,or do I have to take
any actions? I also noticed the script debugger. Would this help? I had a
look but it all seems like a foreign language to me.



"PA Bear" wrote:

> Try reinstalling Windows 5.6 Scripting Engine:
> http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
> --
> ~Robear Dyer (PA Bear)
> MS MVP-Windows (IE/OE) & Security
>
> bouncy wrote:
> > When I attempt to print a page displayed on IE6 i get the following
> > message:
> >
> > An error has occured in the script of this page.
> >
> > Line 228
> > Char 1
> > Error Interface not registered
> > Code 0
> > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
> >
> > Do you want to keep running scripts on this page.
> >
> > This only started appearing recently and I knowingly have made no changes
> > to my computer. Previously I had no problems. I am running V6.0 2900
> > 2180.xpsp_sp2_gdr. Thanks
>
>

PA Bear
07-09-2005, 10:10 PM
Also see http://inetexplorer.mvps.org/archive/answers3.htm#preview_dlg and
http://groups-beta.google.com/group/microsoft.public.windows.inetexplorer.ie6.browser/msg/6e80e157cd805ee0?hl=en
--
~Robear Dyer (PA Bear)
MS MVP-Windows (IE/OE) & Security


bouncy wrote:
> I tried this but see no difference after dowloading and installing. Does
> the file automatically install itself in the correct place,or do I have
> to take any actions? I also noticed the script debugger. Would this help?
> I had a look but it all seems like a foreign language to me.
>
>
>
> "PA Bear" wrote:
>
> > Try reinstalling Windows 5.6 Scripting Engine:
> > http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
> > --
> > ~Robear Dyer (PA Bear)
> > MS MVP-Windows (IE/OE) & Security
> >
> > bouncy wrote:
> > > When I attempt to print a page displayed on IE6 i get the following
> > > message:
> > >
> > > An error has occured in the script of this page.
> > >
> > > Line 228
> > > Char 1
> > > Error Interface not registered
> > > Code 0
> > > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
> > >
> > > Do you want to keep running scripts on this page.
> > >
> > > This only started appearing recently and I knowingly have made no
> > > changes to my computer. Previously I had no problems. I am running
> > > V6.0 2900 2180.xpsp_sp2_gdr. Thanks

Robert Aldwinckle
07-09-2005, 10:11 PM
"bouncy" <bouncy@discussions.microsoft.com> wrote in message
news:CD704F7B-9841-48B5-B5CB-95703A6B947C@microsoft.com
....
> "PA Bear" wrote:
>
>> Try reinstalling Windows 5.6 Scripting Engine:

>I tried this but see no difference after dowloading and installing. Does the
> file automatically install itself in the correct place,or do I have to take
> any actions? I also noticed the script debugger. Would this help? I had a
> look but it all seems like a foreign language to me.

Did the script debugger show you the contents of line 228?


---


>
>
>
> "PA Bear" wrote:
>
>> Try reinstalling Windows 5.6 Scripting Engine:
>> http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
>> --
>> ~Robear Dyer (PA Bear)
>> MS MVP-Windows (IE/OE) & Security
>>
>> bouncy wrote:
>> > When I attempt to print a page displayed on IE6 i get the following
>> > message:
>> >
>> > An error has occured in the script of this page.
>> >
>> > Line 228
>> > Char 1
>> > Error Interface not registered
>> > Code 0
>> > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
>> >
>> > Do you want to keep running scripts on this page.
>> >
>> > This only started appearing recently and I knowingly have made no changes
>> > to my computer. Previously I had no problems. I am running V6.0 2900
>> > 2180.xpsp_sp2_gdr. Thanks
>>
>>

bouncy
07-09-2005, 10:11 PM
I cant get the debugger to run in ie, however it gives an error with outlook
on line 227,please see below:

g_fPreview = dialogArguments.__IE_PrintType == "Preview";

hope this helps.

Bouncy

"Robert Aldwinckle" wrote:

> "bouncy" <bouncy@discussions.microsoft.com> wrote in message
> news:CD704F7B-9841-48B5-B5CB-95703A6B947C@microsoft.com
> ....
> > "PA Bear" wrote:
> >
> >> Try reinstalling Windows 5.6 Scripting Engine:
>
> >I tried this but see no difference after dowloading and installing. Does the
> > file automatically install itself in the correct place,or do I have to take
> > any actions? I also noticed the script debugger. Would this help? I had a
> > look but it all seems like a foreign language to me.
>
> Did the script debugger show you the contents of line 228?
>
>
> ---
>
>
> >
> >
> >
> > "PA Bear" wrote:
> >
> >> Try reinstalling Windows 5.6 Scripting Engine:
> >> http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
> >> --
> >> ~Robear Dyer (PA Bear)
> >> MS MVP-Windows (IE/OE) & Security
> >>
> >> bouncy wrote:
> >> > When I attempt to print a page displayed on IE6 i get the following
> >> > message:
> >> >
> >> > An error has occured in the script of this page.
> >> >
> >> > Line 228
> >> > Char 1
> >> > Error Interface not registered
> >> > Code 0
> >> > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
> >> >
> >> > Do you want to keep running scripts on this page.
> >> >
> >> > This only started appearing recently and I knowingly have made no changes
> >> > to my computer. Previously I had no problems. I am running V6.0 2900
> >> > 2180.xpsp_sp2_gdr. Thanks
> >>
> >>
>
>
>

Bouncy
07-09-2005, 10:11 PM
Thank you very much. Re-registering hte Dlls has cured the problem.

Bouncy

"PA Bear" wrote:

> Also see http://inetexplorer.mvps.org/archive/answers3.htm#preview_dlg and
> http://groups-beta.google.com/group/microsoft.public.windows.inetexplorer.ie6.browser/msg/6e80e157cd805ee0?hl=en
> --
> ~Robear Dyer (PA Bear)
> MS MVP-Windows (IE/OE) & Security
>
>
> bouncy wrote:
> > I tried this but see no difference after dowloading and installing. Does
> > the file automatically install itself in the correct place,or do I have
> > to take any actions? I also noticed the script debugger. Would this help?
> > I had a look but it all seems like a foreign language to me.
> >
> >
> >
> > "PA Bear" wrote:
> >
> > > Try reinstalling Windows 5.6 Scripting Engine:
> > > http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
> > > --
> > > ~Robear Dyer (PA Bear)
> > > MS MVP-Windows (IE/OE) & Security
> > >
> > > bouncy wrote:
> > > > When I attempt to print a page displayed on IE6 i get the following
> > > > message:
> > > >
> > > > An error has occured in the script of this page.
> > > >
> > > > Line 228
> > > > Char 1
> > > > Error Interface not registered
> > > > Code 0
> > > > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg
> > > >
> > > > Do you want to keep running scripts on this page.
> > > >
> > > > This only started appearing recently and I knowingly have made no
> > > > changes to my computer. Previously I had no problems. I am running
> > > > V6.0 2900 2180.xpsp_sp2_gdr. Thanks
>
>

Robert Aldwinckle
07-09-2005, 10:11 PM
"bouncy" <bouncy@discussions.microsoft.com> wrote in message
news:ABB76CC7-1B07-4F7B-B429-A04ECCE5B9E6@microsoft.com
....
>> >> > An error has occured in the script of this page.
>> >> >
>> >> > Line 228
>> >> > Char 1
>> >> > Error Interface not registered
>> >> > Code 0
>> >> > URL res://C\WINDOWS\System32\shdoclc.dll/preview.dlg

>I cant get the debugger to run in ie, however it gives an error with outlook
> on line 227,please see below:
>
> g_fPreview = dialogArguments.__IE_PrintType == "Preview";
>
> hope this helps.


I think it does. E.g. it probably helps explain why the regsvr32 command helped.

http://www.msdn.microsoft.com/workshop/browser/hosting/printpreview/reference/objects/dialogarguments.asp

(MSN search for
dialogArguments site:microsoft.com
)


FYI I found out how we can see the source that the line numbers refer to.
Enter in the Address bar: res://shdoclc.dll/preview.dlg
and then use View Source (Alt-V,c)! That opens a Notepad window
in which (in XP) you can set Word Wrap off (uncheck with Alt-o,W)
and set Status Bar on (check with Alt-V,S). Then scroll to line 228
to see the above line.

BTW when I enter that "URL" in the Address bar it causes its own error message
which is clearer than the one you got and confirms the location of the error in the file.

<example>
Line: 228
Char: 1
Error: 'dialogArguments' is undefined
Code: 0
URL: res://shdoclc.dll/preview.dlg
</example>

I have never been clear in the case of embedded scripts if the line number
was relative to the start of the script or relative to the start of the file which
contained it. I guess we are getting pretty clear evidence from these two
error messages that it is the latter.

It sure would be easier to follow this in the debugger though.

One thing I'm surprised at is that there is no specification of which
script language is to be used. I think it has to be Javascript but
wonder what would happen if some users had VBScript as a default
script language (assuming that that could happen.) Perhaps the caller
establishes that. (Mysteries...)

Glad to see you found a solution.


Robert
---


Unable to print from IE6