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

RadPrintDocument - Header Overlapping Content

0 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mary
Top achievements
Rank 1
Mary asked on 02 Jun 2016, 08:22 AM

Hi,

 

I'm having a problem with setting a header in a radprintdocument. I'm setting a leftheader only. It looks fine on the the first page, but on further pages, it prints on top of the content of the document -- as in, the content and the header start at the same point on the page, instead of the content being printed below the header.

 

Here's my code:

 

        Header = "Date: " & lblDateTime.Text & " To: " & txtTo.Text

        If txtCC.Text <> "" Then
            Header = Header & " CC: " & txtCC.Text
        End If

        Document.LeftHeader = Header
        Document.DefaultPageSettings.Landscape = False
        Document.DefaultPageSettings.PrinterSettings.Copies = 1
        Document.AssociatedObject = txtEmail
        Document.PrinterSettings.PrinterName = Printer

        Document.Print()

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Mary
Top achievements
Rank 1
Share this question
or