HTML view not aligned

12 posts, 0 answers
  1. U4
    U4 avatar
    13 posts
    Member since:
    Oct 2012

    Posted 23 Feb 2009 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Feb 2009 Link to this post

    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.
  3. DevCraft banner
  4. U4
    U4 avatar
    13 posts
    Member since:
    Oct 2012

    Posted 01 Mar 2009 Link to this post

    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,


  5. Hrisi
    Admin
    Hrisi avatar
    221 posts

    Posted 03 Mar 2009 Link to this post

    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.
  6. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 03 Jun 2009 Link to this post

    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
  7. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 03 Jun 2009 Link to this post

    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.

  8. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 03 Jun 2009 Link to this post

    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 
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jun 2009 Link to this post

    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.
  10. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 04 Jun 2009 Link to this post

    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 
  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jun 2009 Link to this post


    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.
  12. Terry Webster
    Terry Webster avatar
    48 posts
    Member since:
    Aug 2003

    Posted 04 Jun 2009 Link to this post

    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 
  13. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 10 Jun 2009 Link to this post

    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.
Back to Top
DevCraft banner