Question Locked

Crystal Reports Font Changes when ran on Server

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to write an application that
produces reports.

On the local machine in debug mode with Visual
Studio 2005 and Crystal Reports 10.2 the
reports look fine when debugging via the built
in server with Visual Studio; however, when
debugging with IIS or running the application
via the internet the report generated is way
too big in its font size and splits the report
into mutltiple pages.

I've searched and searched the internet for
help but none of the sites I've found have a
solution to this issue.

Any help would be appreciated.

Thank you;
KaptKos

4 replies

by brent.lightsey

I'm experiencing the same issue, this time with the Crystal Reports built into Visual Studio 2008 (v 10.5). Looks great when running it in the VS native web server, but running in IIS on my local system, fonts come out in many different sizes, even those line items in the same group look different.

by brent.lightsey

Okay, I finally discovered that my CSS was messing up my reports. On my local web server and test server, the CSS files were being linked in properly because they used an absolute path (i.e. http://site/css/screen.css), but when debugging, these CSS files weren't being linked properly because the default web server didn't have those CSS where it was looking for them. Because the CSS weren't referenced in dev, everything looked fine. But putting it in the local server, the CSS started to affected the HTML rendered by the report viewer control.

Once I realized this, I just included some inline styles in my page with the report viewer control to cancel out what my style sheets were trying to do. Hope this helps.

by amit81

Hi,
Can you explain how you resolved this issue into more depth as i dont seem to have CSS linked to the CR. I am exporting straight to a pdf document and am having the issue of font size that some how becomes larger once opened. When i run this on my local PC, all is fine and document is produced as should be.

any help would be appreciated,

thanks

This discussion is closed to new replies.