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

HTML view not aligned

11 Answers 209 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 23 Feb 2009, 11:07 AM
Hello,

I'm currently evaluating telerik reporting and made some simple reports. When I preview the report using the designer then reports looks okay and properly aligned, but when I view it with HTML in the designer of using a web reportviewer, it gets mis-aligned, is this because I'm using a trial version?

also just a followup question, is it possible to change the unit of measure in design time, from inches to millimeter?

Thanks

11 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 08:54 AM
Hello Pss Pss,

The trial versions of our products are fully functional and do not expose any limitations, except the trial message.
The misalignment most likely comes from the fact that you have overlapped items in your report, which is not allowed in HTML and Excel rendering. Please review the Design Considerations for report rendering help section for more information on the specifics of each of the formats.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andy
Top achievements
Rank 1
answered on 02 Mar 2009, 02:20 AM
Thanks steve,

I just realized that I cannot use dock property for HTML. One more question. I was able to align everything properly for the PDF view and almost for HTML view except for one. When I draw a line (shape), the HTML view add an extra space below the line, not pretty sure if you have a similar case.

Thanks,


0
Hrisi
Telerik team
answered on 03 Mar 2009, 10:52 AM
Hello Pss Pss,

Shapes are represented by the images in all formats and as a result they can move or resize during processing. We strongly recommend you to use borders (for sections, panels or textboxes) because they do not disturb the report layout.

Sincerely yours,
Hrisi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Terry Webster
Top achievements
Rank 2
answered on 03 Jun 2009, 06:45 PM
There is definitely a problem with the alignment of the shapes in HTML.  I have verified that no shapes are overlapping and it simply renders incorrectly in HTML.  Also, the HTML renders with a space in between.  I would like to use the shape in a manner to paint a grid lines without any spacing.

Also, the link supplied for Design Considerations is not working.

Thanks,

Terry
0
Terry Webster
Top achievements
Rank 2
answered on 03 Jun 2009, 06:57 PM
I have tried the same using Panels with Border Style = Solid.  Same issue occurs during render.  HTML is misaligned.  Some have spaces and then others do not.

This is definitely a problem.

0
Terry Webster
Top achievements
Rank 2
answered on 03 Jun 2009, 07:05 PM
Just tried using a Picture Box with Borders = Solid and same result. Spacing is actually worse. 

 Terry Webster, Owner

Visit WebBasics.net online
View Terry Webster's profile on LinkedIn 
0
Steve
Telerik team
answered on 04 Jun 2009, 09:05 AM
Hi Terry,

There is no longer a need to use shapes for making a table like layout as you can either use dock & anchoring or directly our new table report item that would make it easier for you. Still if you want the table to have borders, you should apply the borders of the textbox items within the table cells. You can take a look at our demo reports that use the new table to see it shows properly in html:

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Terry Webster
Top achievements
Rank 2
answered on 04 Jun 2009, 01:03 PM
I guess I didn't state clearly enough the end goal. We are creating form based reports with prepopulated elements.  Essentially, we have a customer/client that is providing us with required data, we then enter that into our system and then print out the form with the data they provided in order to get a readable copy that they can in turn sign.

The forms are similar in nature to that of the IRS forms.  For example, FORM 1040 (http://www.irs.gov/pub/irs-pdf/f1040.pdf?portlet=3).

I don't see how the table report item will accomplish what we are trying to do.

Terry Webster, Owner

Visit WebBasics.net online
View Terry Webster's profile on LinkedIn 
0
Steve
Telerik team
answered on 04 Jun 2009, 01:50 PM

Thank you for the clarification Terry! Indeed for such complex forms, the table layout would not help. I've read your previous replies once again and do not quite understand what are the issues you've encountered with the Html rendering. Please note that every rendering format has its peculiarities and limitation outlined in the Design Considerations for Report Rendering. If you're looking for 1:1 look in the web report viewer and in the exported pdf file, this would be almost impossible to achieve as the html rendering is not a page oriented format.
We would appreciate if you elaborate on the exact issues you've encountered so that we can advice you accordingly.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Terry Webster
Top achievements
Rank 2
answered on 04 Jun 2009, 02:59 PM
Essentially, when I draw shapes and align them in the report designer it should render as I designed it.  It doesn't in HTML.  I think what is missing here is a table designer that can be used a a container of sorts.  That way text could flow inside of cells and cause cells to grow while still maintaining overall shape.

Here is what I designed:
 

Here is the windows layout (looks great!):
  

Here is the HTML layout (not so great!):
 
 
We need a way to accomplish getting the layout to look similar enough (all lines evenly spaced and aligned).

Terry Webster, Owner

Visit WebBasics.net online
View Terry Webster's profile on LinkedIn 
0
Chavdar
Telerik team
answered on 10 Jun 2009, 08:45 AM
Hi Terry Webster,

The most appropriate solution in your case is to use the Adobe PDF Reader add-on to show the reports instead of the web ReportViewer control. The HTML rendering extension which ReportViewer uses is not designed for achieving table layout with Textboxes and still has some limitations as explained in the previous post.

I have attached a sample Web Site solution which shows how to implement the suggested approach. Give it a try and let me know whether it fits your requirements.

Best wishes,
Chavdar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Andy
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andy
Top achievements
Rank 1
Hrisi
Telerik team
Terry Webster
Top achievements
Rank 2
Chavdar
Telerik team
Share this question
or