Hi,
after designing a 3 page report (each page laid out differently) the final part was to add some lines at the bottom of the last page for names, signatures etc.
But they didn't appear on the viewed report.
I managed to get the line to be visible on the first page with Y1 & Y2 = 100. If I moved it to 150, the line sloped i.e. I had to make Y2 = 155 for it to stay horizontal. This was so all the way down the page but stopped when I tried to get the line on page 2 (no line visible).
So after a quick test - 2 pages, a few elements and 1 line, it appears that using a page break prevents the line being displayed.
Here is the test sample - just move the page break above or below the Line element to see the result:
<?xml version="1.0"?>
<document xsi:schemaLocation="http://www.DynamicPDF.com http://www.DynamicPDF.com/schemas/DPLX4.xsd" version="4.0" id="Document" author="" keywords="" title="" subject="" xmlns="http://www.DynamicPDF.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<report id="Report1">
<query id="Query" dataProvider="oleDb" connectionString="MyConn">
<sql>SELECT * FROM tblCustomer WHERE cusID = 1</sql>
</query>
<header id="Header" height="50">
<label id="Label1" x="182" y="19.5" height="14" width="100" text="MY HEADER"/>
</header>
<body id="Body" height="500">
<label id="Label3" height="14" width="100" x="183" y="0" text="BODY 01"/>
<label height="14" width="100" id="Label4" x="314" y="292" text="BODY 02"/>
<line id="Line1" x1="154" y1="333.5" x2="354" y2="333.5"/>
<formattedRecordArea id="FormattedRecordArea1" height="14" width="100" x="143" y="98.5">
<initialStyle>
<font/>
<line/>
<paragraph/>
</initialStyle>
<text><![CDATA[FA 01]]></text>
</formattedRecordArea>
<rectangle id="Rectangle1" height="14" width="100" fillColor="violet" x="162" y="360.5"/>
<pageBreak id="PageBreak1" y="391.5"/>
<label id="Label5" x="56" y="326" height="14" width="100" text="Line Here:"/>
<label id="Label6" height="14" width="100" text="Rectangle Here:" x="56" y="360"/>
</body>
<footer id="Footer" height="50">
<label id="Label2" x="193" y="25" height="14" width="100" text="MY FOOTER"/>
</footer>
</report>
</document>
The vb code is:
Dim sFile As String
sFile = "C:\test.aspx.dplx"
Dim reportDocument As DocumentLayout = New DocumentLayout(sFile)
DrawPdfToWeb("MyReport.pdf")
Any ideas, or am I missing something?
Thanks in advance...
Line object erratic?
Re: Line object erratic?
Support · Jun 18, 2007Hello,
Thank you for informing this and we are aware of this issue and we have fixed this issue. We have a build which is not yet released and if you can send a mail to our [^a|mailto:support@cete.com|Support Team^] they can give the build which has this fix.
Thanks,
ceTe Software Support Team.