Re: Help needed to get height of Microsoft Word saved as MHT docum
- From: Poonam Thawani <PoonamThawani@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Jun 2006 21:37:01 -0700
Hi Engel,
I am facing an issue where now in the same Javascript function if alert
statement is added I get the correct height and frame scrollbar is eliminated.
But if alert statement is removed I do get scrollbar.
Any thoughts??
Regards,
Poonam
"Engelbert" wrote:
Also posted as "Urgent - Help needed to get height ...." where there is a.
reply.
Engelbert
"Poonam Thawani" <PoonamThawani@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3E36228C-248D-40E9-8712-B6A68A4A9E2D@xxxxxxxxxxxxxxxx
I am facing an issue which I have explained below.Your help in this case
will
be highly appreciated.
Issue Description
We have a webpart called "WebPageViewer webpart" which is similar to
"Microsoft Sharepoint Page Viewer Webpart".
Our "WebPageViewer webpart" consist of a frame in which content of various
types (doc,ppt,htm,mht,xls) are displayed.
To eliminate the frame scrollbar we have implemented the Javascript code
which will calculate the document height and adjust the frame height to
the
height of the content displayed within the frame.
The scrolling is eliminated within the frame by setting the frame height
to
the height of the content and setting the scrolling attribute of frame to
"No".By implementing the above explained the horizontal and vertical
scrollbars are removed and the height of frame is equal to height of
document.
However I get the correct height for document of types
"htm","MHT","Microsoft PPT saved as MHT","Microsoft Word .doc saved as
filtered .htm".
I am facing issues as Javascript function doesn't gives correct height for
"Microsoft Word saved as MHT" and hence complete document is not shown in
frame.
Also if the "Word document saved as MHT" without any images in the
"Microsoft Word" document then the javascript returns the correct height.
But if the "Word document saved as MHT" with images in the "Microsoft
Word"
document then the javascript doesn't returns the correct height and
complete
document is not displayed within the frame.
The Word document saved as MHT is a WebArchive file which consist of
embedded content and embedded web images.I need help as to how to get the
height of an "Word document saved as MHT" document with embedded images
within it.
We have lot of Word documents already existing in portal which are saved
as
"MHT's".Hence we need to eliminate scrollbar in frame for "Microsoft Word
saved as MHT" documents and get correct height for "Microsoft Word saved
as
MHT".
Please suggest.
Thanks & Warm Regards,
Poonam
- References:
- Prev by Date: Re: Help needed to get height of Microsoft Word saved as MHT document
- Next by Date: RSS in SPS 2007
- Previous by thread: Re: Help needed to get height of Microsoft Word saved as MHT document
- Next by thread: RSS in SPS 2007
- Index(es):
Relevant Pages
|