on 12-19-2008 4:57 AM
Hi,
I am using the CrystalViewer object to display the viewer in a JSP.
I need to display at a particular position from the Top, so, I am using viewer.setTop(900);
and from left I use viewer.setLeft(100);
Strange thing is the viewer is not behaving as it suppose to be, instead, its set at a fixed position
in the page, and when i view the source, it appears, that the viewer code has inserted abruptly in
some particular location, and gets rest of my code to be corrupted.
The same would work properly, if i use a iframe, but I dont want to use this because of some business
reasos.
Is there a better way to do it ? is this the way viewer would behave ? can I set the viewer to appear
properly in any position, where i wish ?
I have some other stuff to be displayed on top of the screen, so i want this viewer after that.
please guide me.
thanks
Nithy
I recommend using the IFrame, to get full viewer functionality.
Otherwise, you'd have to set the viewer to disable setBestFitPage to false, to have the explicit sizing you set for the viewer take effect. But this would: (1) cause the view to be placed with absolute positioning in the browser frame, and (2) use units that are browser version and vendor dependent, so no guarantees.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.