How to change / Remove Headers Top Margin in RadRichTextBox

4 posts, 0 answers
  1. Sheetal
    Sheetal avatar
    3 posts
    Member since:
    Jul 2012

    Posted 19 Jul 2012 Link to this post

    Hi

    I want to change the top margin of Header & Footer programmatically. i have added one image in header.
    but it is not exactly top of the header, it is showing me some space at the top.



    I want the output as follows and also want the image at the top.



    Can any body suggest any solution.

    Thanks
    Sheetal

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 20 Jul 2012 Link to this post

    Hi Sheetal,

    The default behavior of images in RadRichTextBox is to be presented in line with the text. This is the reason for the additional space on top of your image. To override this behavior, you can create a FloatingImageBlock. More about the hierarchy of the elements you can find here. I also attached a sample project for you to see how a floating image can be added to the header of the document.

    Don't hesitate to contact us if you have other questions.

    All the best,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Sheetal
    Sheetal avatar
    3 posts
    Member since:
    Jul 2012

    Posted 24 Jul 2012 Link to this post

    Hi,

    Thank you it is really helpful for me!! .

    I have successfully removed the space from header and the client will get agreed to

    purchase the product.

    I need to generate the CV [Resume] like following.



    From your reference I can able to generate a header like above. But in footer we still have some gap



    Also I want to add table in next page this is the most important.
    And also want to keep some space between header and paragraph.

    I have created the following document.


     

    I was tried to keep space before the table by adding paragraph and also with line spacing.
    But the space is different for different document.

    Can you help me to resolve these issues? or do you have any solutions on this?

    Thank you
    Sheetal




  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 25 Jul 2012 Link to this post

    Hi Sheetal,

    We investigated the footer issue and it turned out to be a bug. We added it to our to-do list and will get to it as soon as possible. Unfortunately, I cannot engage with a specific time frame, nor can I provide a workaround.

    As for the other issue, can you please provide some details. If I understand correctly, the space between the header and the paragraph depends on the document. Can you confirm that and give us some information on the relationship between the two?

    On a side note, could you please share some details for your application? Is it essential for your application to create the footer programmatically? If not, you can create the document from the UI, arrange it as you wish and then export and import it. 

    Thanks in advance and excuse us for the inconvenience. I'm waiting for your reply.

    Kind regards,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top