Hi - I am trying to get a header to appear on my pdf, but I am having no luck. My page ends up blank. This is the code I am using:
page.Elements.Add(bgImage)
page.Dimensions.Height = 828
page.Dimensions.Width = 581
page.Dimensions.LeftMargin = 0
page.Dimensions.RightMargin = 0
page.Dimensions.TopMargin = 153
page.Dimensions.BottomMargin = 0
dFontSize = 7
Dim hWL as New Template
hWl.Elements.Add(New Label("WORKLIST FORM",0,0,144,9))
hWl.Elements.Add(New Label("TESTING 123",0,500,144,9))
dClaim.Template = hWL
I have tried it w/ a top margin at 153 and a top margin at 0. I get the same results. Can you tell me if I am doing something wrong? Thank you so much
Header
Re: Header
Support · Apr 27, 2007Hello,
Are you getting a blank PDF or a blank page? Also can you please tell us the version of the .NET framework, and the Acrobat you are using.
Thanks,
ceTe Software Support Team.
Re: Header
Forum member · Apr 27, 2007
A blank PDF. Framework is 2.0.50727 and Adobe Reader 7.
Thank you
Re: Header
Support · Apr 27, 2007Hello,
Please try adding the following line of code right after the DrawToWeb method of the document object and it will solve your problem.
Visible = false
Thanks,
ceTe Software Support Team.
Re: Header
Forum member · Apr 27, 2007Still having the same problem.
Dim javaScript as new DocumentJavaScript( "Test", "this.print({bUI: true, bSilent: true, bShrinkToFit: true});")
dClaim.JavaScripts.Add(javaScript)
dClaim.Drawtoweb(path & Session("UserName") & ".pdf")
Visible = false
response.end
Re: Header
Support · Apr 27, 2007Hello,
We will need to take a look at the headers from the page calling the pdf. I would recommend using ieHTTPHearders tool
which allows you to capture all IE headers. Run your example once again and send over the headers it returns to our [^a|mailto:support@cete.com|Support Team^].
Thanks,
ceTe Software Support Team.