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
3 Answers, 1 is accepted
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.
Petya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
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
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.
Petya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.