Re: Help needed to get height of Microsoft Word saved as MHT docum

Tech-Archive recommends: Fix windows errors by optimizing your registry



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



.



Relevant Pages

  • Re: Packing problems
    ... but the frame there are in is centered horizontally. ... pack your text widget absolutely last and you'll get better resize behavior. ... Many windows applications put both the scrollbar and text widget inside a common frame that is sunken. ... commands and then resize the window to be smaller, you'll see the effect I describe in the tclscripting.com article where the scrollbars disappear before the text widget shrinks. ...
    (comp.lang.tcl)
  • Re: Parse input file and create widgets
    ... > The number of widgets in the bottom frame depends on the input file. ... > (basic UI was created in SpecTCL and later I added some custom code to ... > scrollbar $base.protocolscroll \ ...
    (comp.lang.tcl)
  • Tkinter: scrollbar in grid-managed frame
    ... corresponding column of Entry widgets. ... scroll through them in the frame. ... So far i can get a scrollbar to ... display, ...
    (comp.lang.python)
  • Text box invisible scroll bars
    ... using a textbox (multiline + scrollbar enabled), that lives in a frame with ... visible set to false. ... When making the frame visible, the scrollbars on the text box are invisible ...
    (microsoft.public.excel.programming)
  • Re: Attempt to de-mystify AJAX
    ... I know it makes complete sense to people who are using a LAMP approach that they would code a php document that includes html, css, php, javascript, and SQL all in a single document of source code, sometimes even a very small document. ... My understanding at this point is that it is a language with which you can write either procedural code or OO code, which means to me that it isn't strictly OO. ... the laissez-faire days of MV BASIC, and I won't relinquish them to build houses of cards, just because people now think that everything has to be done client-side in the browser. ... But I prefer to skirt around the issue by using frame sets. ...
    (comp.databases.pick)