Skip to Content
author's profile photo Former Member
Former Member

CrystalViewer query

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 19, 2008 at 03:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.