473,419 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Can I resize Excel window from IE browser?

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
Jul 20 '05 #1
3 2499
xl****@hotmail.com (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 - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
On 5 Sep 2003 03:43:56 -0700, xl****@hotmail.com (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/

Jul 20 '05 #3
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
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Weng kin | last post by:
Hi everyone, I have a problem trying to load an image without the image resizing itself to fit into the window. My simple javascript is as follows: function viewImage(filename) { features =...
4
by: David Logan | last post by:
Hello, I am trying to open a window with a graphic in it and have the window be exactly the correct size of the image. Is there anyway to do this that will work on any browser on any OS???? ...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
14
by: franz | last post by:
hallo everyone, i have a popup window 500x400px centered in the middle of the screen and inside it there's a mini-photogallery. what i want is to click on a thumbnail and open in the same window a...
69
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow...
1
by: piscesabhi | last post by:
Is there a way to auto resize the website, when using different browsers? I was using this javascript earlier but i don't want to specify dimensions........i would like it to automatically adjust...
5
by: Doug Gunnoe | last post by:
I'm considering resizing a div onload to better match the screen width of the user. Easy enough, however it seems that I have read in this group that there are potential problems with this,...
0
by: msoliver | last post by:
Issue: I want resize handlers within an iframe to be called when the main window changes size. Alternatively, I'd like to know how to propagate a resize event handled by the main window to iframe...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.