cancel
Showing results for 
Search instead for 
Did you mean: 

General CRViewer appearance Questions

Former Member
0 Kudos

Hey all,

I have got a few questions that have been bugging me for awhile, and I just cant find answers to them.

-


1)

How do I set the Browsers Page header for a page that displays my viewer

(Default is "Crystal Report Viewer").

I have managed to do this for when I output directly to pdf and not displaying in a viewer

by having this bit of code in my JSP


out.println("<html>");
out.println("<head>");
out.println("<title>Report Succesfully Exported</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Report Exported</h1>");
out.println("<p>The report has been exported to ");
out.println("the server succesfully.</p>");
out.println("<p>This Report has been exported to your home directory.<br/>");
out.println("Please browse to it there.</p>");
out.println("</body>");
out.println("</html>");

This works fine, but if I insert this into my JSP that displays the report in the CR Viewer it just gets ignored.

I tried using


crystalReportPageViewer.setName("Page Heading Here");

but that just changes the name of the report when I export it. (Got another question on that lower down)

So is there a way to change the HTML page header (or Tab label in IE6)?

-


2)

When using the viewer.setName option, it removes any spaces or special characters ("_"), how can I stop

this. I want the output name to be readable.

BalSht_Yr2007_P10_Comapny.pdf is alot easier to read than...

BalShtYr2007P10Company.pdf

-


3)

When the report is displayed in the Viewer, how can I remove the mouse over function.

I dont want people to see the name of the fields when they place their mouse over the field.

-


Silly little errors but irritating non the less.

Thanks all and have a good weekend.

Cheers

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Dareen,

I would like to answer your second question i.e.

When using the viewer.setName option, it removes any spaces or special characters ("_"), how can I stop this. I want the output name to be readable.

BalSht_Yr2007_P10_Comapny.pdf is a lot easier to read than...

BalShtYr2007P10Company.pdf

-


>

Due to the internal uses of property viewer.setName ,any special characters (including punctuation, spacing, and Unicode characters) are stripped from the value when it is set.

So you have to give a name without including the above mentioned characters.

Thanks,

Chinmay

Former Member
0 Kudos

Hi developers...

I've same problem, but not posted as separate thread.

help us urgently...

Thanx in advanced.