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

Panel Not rendering at correct Left Position

1 Answer 6 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert Bross
Top achievements
Rank 1
Robert Bross asked on 17 Jan 2013, 05:10 PM
I have a report that is being generated programatically and saving the results to a PDF file which then gets sent to the client. I have a panel that the location is set to X: 0px Y: 73px. However, when it renders on the screen the left is offset by what looks to be the width of the panel directly above it. Here is the XML (Serialized from the programmatic report definition) for the panel that is being offset (Email Address 2) and the panel directly above it (Email Address). I have also attached a screenshot of how it is being rendered. Can anyone see anything in the definition that might be causing this?

<Panel Size="0px, 19px" Location="0px, 54px" Name="pnlE75877F0-849B-4730-90EA-6ED68B904D87">
                     <Style BackgroundColor="Green" />
                     <Items>
                        <TextBox Value="Email Address:" Size="97px, 16px" Location="0px, 0px" />
                        <TextBox Value="=[Person.EmailAddress]" Size="0px, 16px" Location="97px, 0px">
                           <Style>
                              <Font Bold="True" />
                           </Style>
                        </TextBox>
                     </Items>
                  </Panel>
                  <Panel Size="0px, 19px" Location="0px, 73px" Name="pnlA675AD23-718F-4220-B957-C6F250780ECA">
                     <Style BackgroundColor="Green" />
                     <Items>
                        <TextBox Value="Email Address 2:" Size="109px, 16px" Location="0px, 0px" />
                        <TextBox Value="=[Person.EmailAddress2]" Size="0px, 16px" Location="109px, 0px">
                           <Style>
                              <Font Bold="True" />
                           </Style>
                        </TextBox>
                     </Items>
                  </Panel>

Thanks!

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Jan 2013, 03:37 PM
Hello Robert,

Thank you for the description of your scenario, however we're unable to reproduce the problem in our local tests with the xml markup you provided and the panels are rendered as expected.

If you're still having problems, we would need your actual report definition in order to identify the culprit. In general we have listed the rules that apply in the designer and what one should have in mind when creating the report layout in the Design Considerations for Report Item Layout, but I cannot see an applicable point for the screenshot you have sent.

All the best,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Robert Bross
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or