Page Canvas not drawing some text boxes in another machine


02-01-2010, 7:05 AM
Helo,
I'm facing problem when drawing text boxes/check box in another machine. It works fine in the current system i work.
Any help please.

Best regards,
Samyvel

Re: Page Canvas not drawing some text boxes in another machine


02-01-2010, 7:45 AM
Hello,

Could you send the code that you use to draw the controls that works fine in your machine but not on the other?

Regards,
Prantik

Re: Page Canvas not drawing some text boxes in another machine


02-01-2010, 7:48 AM
Hi,
Below is the code....

Case 1, 2, 14, 16, 17 'TextBox, RichText, MaskEdit, DropDownList, DropDownCombo

arCanvas.DrawRect lngLeft, (lngTop + 90), lngWidth, (lngHeight - 75)
txo.WriteLine (vbTab & "Datetypeid - " & !DataTypeId & vbTab & " Fieldtag - " & flds("fieldtag") & String(75 - Len(flds("fieldtag")), " ") & "arCanvas.DrawRect " & lngLeft & ", " & (lngTop + 90) & ", " & lngWidth & ", " & (lngHeight - 75))

Re: Page Canvas not drawing some text boxes in another machine


02-01-2010, 11:11 AM
Samyvel,

What is the “txo.WriteLine” method that you are using?  Please take into consideration that the measurements in ActiveReports for VB6 are done in twips (1/1440 of an inch).Try commenting out the txo.WriteLine method to check if the rectangle is drawn or not. Also can you create a small sample application to describe the issue as I was able to use the draw Rectangle without any issues?

Regards,
Prantik

Re: Page Canvas not drawing some text boxes in another machine


02-04-2010, 6:31 AM
Thanks a lot. I fix the problem. The problem was with the query.