I am currently evaluating DynaPDF MBS, and I am having a simple problem. I see 
in the examples that the table cell background color is painted properly, but 
in my code it is not. The cell background is painted 1 row before the table is 
started. Here is my code:

  Dim pdf As New DynaPDFMBS
  Call pdf.CreateNewPDF(SpecialFolder.Desktop.Child("rbr.pdf"))
  Call pdf.Append
  Call pdf.SetFont("Arial", pdf.kfsNormal, 10.0, True, pdf.kcp1252)
  
  Dim rowNum As Integer = 0
  Dim t As DynaPDFTableMBS
  t = pdf.CreateTable(1, 1, pdf.GetPageWidth - 130.0, 8.0)
  Call t.SetFont(-1, -1, "Arial", pdf.kfsRegular, true, pdf.kcp1252)
  
  rowNum = t.AddRow
  Call t.SetBackColor(rowNum, 0, 95, 150, 201)
  Call t.SetTextColor(rowNum, 0, 255, 0, 255)
  Call t.SetCellText(rowNum, 0, pdf.ktaLeft, "Number (ID)")
  
  Call t.DrawTable(65, pdf.GetPageHeight - 100)
  t = Nil
  
  Call pdf.EndPage
  Call pdf.CloseFile

When I run this, I wind up with:

[___BLUE BACKGROUND_______]
Number (ID)

Number(ID) is in Pink (debugging colors)

Thanks!

Jeremy

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to