This is a migrated thread and some comments may be shown as answers.

How to aligned properly in FF & IE's browser view & PDF version?

2 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
$hekh@r d-Ziner
Top achievements
Rank 2
$hekh@r d-Ziner asked on 01 Apr 2010, 12:06 PM
hello,


I did text-align: right. But it does not aling appropriately in IE. Telerik ReportViewer.axd generates 'word-wrap' itself in css class. It creates spaces to right side, so its not aligning correctly in IE. Even when i generates a PDF from IE, again it does not aligns as in browser. Same value for right padding are different in IE & FF. IE's browser view & PDF from IE's view is also different. Will somebody help me get out from this?

I have used these styles:
Text-align:right;
Padding-right:55px;
Plz have a look at images attached. FF browser, PDF from FF, IE browser, PDF from IE are not being aligned.

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 02 Apr 2010, 11:01 AM
Hi $hekh@r d-Ziner,

PDF and HTML rendering are very different each with its own peculiarities and limitations (see Design Considerations for Report Rendering section for more info), so your task of having 1:1 looking report in both formats is not trivial at all.
The output of a report rendered in HTML and PDF differs because both medias are quite different. The 1st (HTML) is dedicated to displaying information on screen and the page is infinite by width and height; in contrast the 2nd format - PDF - supports physical pages and is meant not only for reading on screen but for printing.

According to whether the format supports physical pages, we separate the export formats on two groups: page-oriented (PDF, Image (print preview), print, XPS, RTF) and non-page oriented (HTML/MHTML, Excel, CSV).

All the best,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
$hekh@r d-Ziner
Top achievements
Rank 2
answered on 06 Apr 2010, 11:45 AM
Hi Steve,

thanks for reply. I found a css property is there causing this problem. This css property has been generated by Telerik Report Viewer.

.cssClass{
          word-wrap:break-word;
}

This css property caused the problem while i right aligns my texts. So i want to know, if there is any way prevent those css property from being generated automatically by Telerik Report Viewer.

thanks in advance for co-operation.
Tags
General Discussions
Asked by
$hekh@r d-Ziner
Top achievements
Rank 2
Answers by
Steve
Telerik team
$hekh@r d-Ziner
Top achievements
Rank 2
Share this question
or