Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Can I resize Excel window from IE browser?

Reply
Thread Tools

Can I resize Excel window from IE browser?

 
 
Peter Noneley
Guest
Posts: n/a
 
      09-05-2003
Thank you for reading.

I am not a programmer, I can just about cobble things together using
code examples, so please be gentle!

[What I want to do]
- I will have an application open, such as Excel or Word.
- I then want to open a HTML file in MSIE.
- I then want the HTML file to resize Excel to fit vertically
in 75% of the screen, and the HTML file to fit the remaining 25%.

Thats it, I dont know if it can be done. I have trawled through web
sites with javascript examples but did not find anything that fitted
the bill.

I will be eternally grateful to anyone who can suggest an answer.

Thanks

Peter Noneley
Cardiff (Overcast and dull)
Wales
UK
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      09-05-2003
(Peter Noneley) writes:

> I am not a programmer, I can just about cobble things together using
> code examples, so please be gentle!


> [What I want to do]
> - I will have an application open, such as Excel or Word.
> - I then want to open a HTML file in MSIE.
> - I then want the HTML file to resize Excel to fit vertically
> in 75% of the screen, and the HTML file to fit the remaining 25%.


None of these will work in general. They require MS Office and MSIE
to be installed. That suggests that you are aiming at a controlled
environment (probably an office setting) where those programs are
known to be installed.

It can probably be done, but not with Javascript alone. Javascript
alone has no general method for opening other applications (clicking
on a linke to a ".exe" file might work, but that depends heavily
on the security settings). Opening an HTML file in MSIE will most
likely require the Javscript to run in MSIE already. Resizing
other applications requires access to the operating system from
Javascript, also not normally allowed by the security system.

You can't use Javascript alone. You need some extra technology
to iterface with the operating system. In your case, the obvious
choice would be activeX controls, that you can the activate using
simple Javascript. That means that the problem isn't the Javascript,
so I suggest you try a more microsoft-centric group where they
can help you with the interfacing of MSIE and Windows.
Perhaps
<URL:news:microsoft.public.windows.inetexplorer.ie 55.programming.activexcontrol>
(but I don't know these groups).

/L
--
Lasse Reichstein Nielsen -
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
 
Jim Ley
Guest
Posts: n/a
 
      09-05-2003
On 5 Sep 2003 03:43:56 -0700, (Peter Noneley)
wrote:

>[What I want to do]
>- I will have an application open, such as Excel or Word.
>- I then want to open a HTML file in MSIE.
>- I then want the HTML file to resize Excel to fit vertically
> in 75% of the screen, and the HTML file to fit the remaining 25%.


Not in a default security environment, www.zeepe.com has some useful
methods to aid integration with office, what you want is certainly
very doable, but not that simple.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

 
Reply With Quote
 
Peter Noneley
Guest
Posts: n/a
 
      09-05-2003
Lasse

Thank you for the help and advice. It looks like I will have to try
some other route as you suggest.

If I ever do find the answer I will post it here.

Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
user can't resize popup window in IE James Black Javascript 5 05-02-2006 12:53 PM
Win32:OLE How to size or resize Excel comment textfield? Rodolfo Hinojosa~ Perl Misc 0 02-22-2005 04:34 PM
How to resize all images sizes and coordinates of the images on resize browser rams.kakara@gmail.com ASP General 2 02-13-2005 09:03 AM
Can't resize Word window josmith2@RemoveThisSSSnet.com Computer Support 1 08-29-2004 01:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57