adding rectangle do'nt work

adding rectangle do'nt work

Forum member · Jun 13, 2006
My code: ceTe.DynamicPDF.RgbColor colorCDCDCD = new RgbColor(205f,205f,205f); ceTe.DynamicPDF.PageElements.Rectangle rectangle = new ceTe.DynamicPDF.PageElements.Rectangle(0f, CalculateDPI(55f), CalculateDPI(15f), CalculateDPI(8f), colorCDCDCD,colorCDCDCD,0f,LineStyle.Solid); MainGroup.Add(rectangle); page.Elements.Add(rectangle); document.Pages.Add(page); On the document is no rectangle visible! Why?

Re: adding rectangle do'nt work

Support · Jun 13, 2006
The RGB color that you have defined (250, 250, 250) is white. It is likely that the rectanlge is there but it is appearing as white on a white page so you are unable to see it. Try using any other color except white and you will likely be able to see it. Thanks, ceTe Software Support Team