Re: Adding a File menu in HTA



Mayayana / McKirahan

It isnt that I dont want to use an IE instance.....I am happy to.
The example you sent however was not easy for me to follow....

This code....

<head><h1>HTA Example</h1></head>
<body>Hello World</body>

......produces a simple text page as an hta file.

What code do I need, to get this page to "print".
If I need to add a "Print" button then thats OK.

Once I see the basic code behind the button, I will have a
better understanding of what is involved in invoking the IE instance.

Sorry, but I'm pretty new at this.....

Thank for your help.

Charles W


"mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx> wrote in message
news:HAjNg.6346$v%4.4954@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Can you simplify this for me....

What code do I need to add to a simple text page
to create 'Print Priview' and 'Print' options.

I'm not sure how it can be done. What I posted
was code to do it through an IE instance. There's
no access to that from within the page. You might have
to write the page HTML to disk, open it with a new
instance of IE, then call ExecWB on that. I haven't tried
it (and I'm not going to write the code), but I don't know
of any other way. I don't think it'd be realistic to
actually try to build your own print preview from scratch.
In other words, if you don't get IE to do it then it's
probably beyond what script can do.




.


Quantcast