cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalViewer query

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

ted_ueda
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

Hi Ted Ueda,

thanks for your advice, will look on those options.

cheers