I have used table to represent data in my page, all the data's are represented as tables, during my development as i have to draw
some real table in between data i created new table inside parent table
by using the table row.
this is the code
set MyTable = currentPage.AddTable(0,30,500,630)
Set MyRow = MyTable.AddRow(DPDF_Font_CourierBold , 16)
MyRow.AddCell strSectionName
set MyRow = nothing
after that i want to add real table so i have included following
code
Set MyRow2 = MyTable.AddRow()
Set MyCell = MyRow2.AddCell("")
Set MyCellTable = MyCell.SetTable( 0,0, 400, 100 )
MyCellTable.BorderWidth = 1 MyCellTable.AddColumn( 110 ) MyCellTable.AddColumn( 100 ) MyCellTable.AddColumn( 100 ) MyCellTable.AddColumn( 100 )
Set MyCellRow = MyCellTable.AddRow( DPDF_Font_HelveticaBold, 14 , "FFFACD", "7B68EE" ) MyCellRow.AddCell ( "PCB Location" ) MyCellRow.AddCell ( "Size" )
MyCellRow.AddCell ( "Track Width in mm" )
MyCellRow.AddCell ( "Track Space in mm" )
while not rsSelectTableRows.eof
Set MyRow2 = MyCellTable.AddRow()
MyRow2.AddCell (rsSelectTableRows("Location"))
MyRow2.AddCell (rsSelectTableRows("size") )
MyRow2.AddCell (rsSelectTableRows("trackwidth"))
MyRow2.AddCell (rsSelectTableRows("TrackSpace"))
rsSelectTableRows.MoveNext
wend
end if
i have some 14 to 15 tables to be displayed in between data.
After creating all the data
i use the following
Do
Set MyOverflowTable = MyTable.GetOverflowRows()
If Not( MyOverflowTable Is Nothing ) Then
AddNewPage()
set MyTable = nothing
Set MyTable = currentPage.AddOverflowTable( MyOverflowTable )
End if
Loop While Not( MyOverflowTable Is Nothing )
but after the pdf gets generated i find that some tables are missing in the generated pdf. The tables which are close to the
page bottom are not getting displayed.
Can you please help me in this regard
thanks
Problem with
Re: Problem with
Support · Dec 14, 2005Hello,
You are setting the height of the inner table equal to 100. The inner table won't expand dynamically and therefore the table will only display the rows that it can accommodate in its height of 100. This is likely preventing some rows from being displayed. In order to make the height of the inner table dynamic, you can set the height of the inner table equal to the GetRequiredHeight() for the inner table after you finish adding the rows. This will allow the inner table to display all the rows.
If you continue seeing the same behavior, please send us over your PDF document at [^a|mailto:support@cete.com|Support^]
Thanks,
ceTe Software Support Team
Re: Problem with
Forum member · Dec 14, 2005can u please tell how to use
GetRequiredHeight() inside table
in this code
Set MyRow2 = MyTable.AddRow()
Set MyCell = MyRow2.AddCell("")
Set MyCellTable = MyCell.SetTable( 0,0, 400, 150 )
i have replace 150 with GetRequiredHeight()
Thanks
sowmy
Re: Problem with
Support · Dec 14, 2005Hello Sowmy,
Once you finish adding the rows, you can reset the height of the table as follows:
Set MyRow2 = MyTable.AddRow()
Set MyCell = MyRow2.AddCell("")
Set MyCellTable = MyCell.SetTable( 0,0, 400, 150 )
' Add all your rows here
MyCellTable.Height = MyCellTable.GetRequiredHeight()
Thanks,
ceTe Software Support Team