Re: Local Printing with IE



Interesting. I built a new project to target the emulator and that, after a
*long* time running the emulator at 95% of the CPU time in the host PC, does
eventually print the page. So, what the heck is the browser doing there?
Is it making a graphical image of the page at the resolution of the printer
(that's probably not a great idea in a small embedded system!), and then
drawing the page into that, as opposed to drawing directly on the printer
HDC?

Paul T.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:O6lIEf2YIHA.984@xxxxxxxxxxxxxxxxxxxxxxx
In fact, the serial port is never opened by the browser print process. It
works fine with my own code, but the browser never even does that.

Paul T.

"Sergei R" <rusakov@xxxxxxxxxxxxxx> wrote in message
news:ey8I1b2YIHA.5208@xxxxxxxxxxxxxxxxxxxxxxx
Just wondering, did you figure out what was the problem ?

Perhaps late, but installing serial port sniffer between printer and your
device may be useful.

Sergei R


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message news:%23xjuMycYIHA.1212@xxxxxxxxxxxxxxxxxxxxxxx
Anyway, a full debug build with the browser in it has been, useless.
There's no way to set any debug zones for MSHTML or any of the other
browser components and there is no sign of any useful debug messages
from any component of the browser at all. When I select print (I have a
breakpoint at the line that tells the browser control to print in
IESAMPLE), it loads rsaenh.dll, then unloads it and that's it. No other
operations, no messages about x, y, or z failing, no indication, in
fact, that it wasn't printed normally. BTW, this is basically the same
symptom for network printers, so that's what I'm using now, since that's
more convenient that having yet another piece of hardware on my
workbench.

On the other hand, my own code works flawlessly, so I don't think that
this is a problem with the printer stuff; I think that the browser is
making some assumption or using some resource which is causing a
problem. However, what that might be is a complete mystery to me. I
suppose that I'll ask at the chat tomorrow, but any other ideas would be
appreciated.

Paul T.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message
news:%23S6q9EsXIHA.1132@xxxxxxxxxxxxxxxxxxxxxxx
Yes, it has printing support, CE5 of course, not CE6. The only printer
wizard that I've seen is the one for RDP and the Terminal Services
client, which *is* on my device, but which doesn't appear in the
Control Panel.

Paul T.

"Sergei R" <rusakov@xxxxxxxxxxxxxx> wrote in message
news:%23xa483rXIHA.4448@xxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,


I'm not sure how to install a printer via the Control Panel, so I
guess that means I haven't done that ;-)

There is a wizard there which goes through sequence of steps - choose
port, speed, etc. and printer name from the list. Yours may not be
there :) but it does not make much difference in terms of being PCL
compatible, so choose a similar one in that case, like HP 5L for
example.

Compare your results with and without installed printer. Did you add
printing support component to your platform in PB ?

Sergei R


I've also tried printing to a network printer and the same result
occurs: IE doesn't work, while my own program works fine. There's
definitely something wrong with IE, as built in my OS. I'm building
a DEBUG OS to try to see if there are any errors or at least status
information reported by components of IE. I suppose that there could
be some problem with the registry settings, although I don't
customize the IE settings. I hope that the debug messages will
indicate anything amiss.

Paul T.

"Sergei R" <rusakov@xxxxxxxxxxxxxx> wrote in message
news:%23ViS8wqXIHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,

just to verify, when you print to serial printer from your own
program, do you use the same serial port parameters as IE printing
does ? Namely only these two are supported by IE printing

; @CESYSGEN IF CE_MODULES_PRNPORT
; Printer Port settings
[HKEY_LOCAL_MACHINE\Printers\Ports]
"Port1"="COM1: 9600"
"Port2"="COM1: 57600"
"Port3"="IRDA"
"Port4"="NET0:"
; @CESYSGEN ENDIF

So that IE would be printing only using 57600 or 9600 baud speed and
to com1 only, is your program matching ?

And one more thing to check - do you install any PCL printer through
Windows CE control panel --> Printers to the same serial port ?

Hope this helps

Sergei R


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
spam DOT com> wrote in message
news:ugo48wpXIHA.3556@xxxxxxxxxxxxxxxxxxxxxxx
Hmmm. Well, it's an HP Laserjet 5N, so it should be PCL compatible
;-) Yes, the baud rate etc. are right. My own program that prints
on the same unit connected to the same printer is absolutely fine,
so it's definitely the browser that's the problem. I'll go through
everything again and see whether I might have left something out of
it.

Thanks for the test!
Paul T.

"Sergei R" <rusakov@xxxxxxxxxxxxxx> wrote in message
news:OQ95m%23hXIHA.4868@xxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,

yes I can confirm, that one can print from IE in Windows CE 5 to a
local printer (parallel or serial) from RETAIL build. That printer
must be PCL-compatible (model does not matter), please check the
following steps

1. in IE first go to File->Page Setup-> and select your interface
(serial or parallel), your printer type (laser jet or inkjet) and
draft or not etc. Ok to close that dialog
2. Now do File->Print and IE would freeze for a few minutes, then
printer will start printing some bands and IE will unlock.

Maybe your printer is not quite PCL compatible ? Did you check
Windows CE hql for that printer model ?

Also, since you are using serial connection - is baud rate correct
and all other settings valid ?


Sergei R



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
spam DOT com> wrote in message
news:u%238e%23UUXIHA.4684@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I seem to be on a streak with these sorts of problems. I'm
running a Windows CE 5.0-based device which includes printing
support. I can print successfully to a suitable HP laser printer
attached to the serial port *using my own application*. However,
when I try to print from Internet Explorer (IESample), on the
device, nothing happens. It's a RETAIL build, but I have enough
debug messages in the serial driver to note that the port is
never being opened by IE in this situation.

Can anyone confirm successfully printing to a local serial
printer from IE in CE5? To any printer from IE in CE5 (that
doesn't work for me, either)? I'm running a fully-updated CE5
installation, with the exception of reversing out the August 2007
SMB server update QFE.

Paul T.






















.



Relevant Pages

  • Re: Local Printing with IE
    ... Paul T. ... printing support component to your platform in PB? ... I hope that the debug messages will indicate anything ... Windows CE control panel --> Printers to the same serial port? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Local Printing with IE
    ... Paul T. ... printing support component to your platform in PB? ... I hope that the debug messages will indicate anything ... Windows CE control panel --> Printers to the same serial port? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Local Printing with IE
    ... I"ve tried the 5N connected via serial port, ... elsewhere in the thread, printing from the emulator does, eventually (after ... Paul T. ... I hope that the debug messages will indicate ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Local Printing with IE
    ... the serial port is never opened by the browser print process. ... printing support component to your platform in PB? ... I hope that the debug messages will indicate anything ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Local Printing with IE
    ... Anyway, a full debug build with the browser in it has been, useless. ... do you use the same serial port parameters as IE printing does? ... Windows CE control panel --> Printers to the same serial port? ...
    (microsoft.public.windowsce.platbuilder)