Hi,
I'm using the Placeholder control to allow me to dynamically add further controls at run-time to a report created using pdf designer. When adding controls to the place holder are x/y values relative to the content area of the PlaceHolder or the Placeholder's containter?
I've have add an image at run-time using the PlaceHolder_LaidOut event, depending on the data in a sub query further down the document this image box isn't consistantly positioned. Yet the X/Y values of the image are the same on each occasion, the thing that seems to vary is the point of origin, in one case it's the document body, which is the container of the PlaceHolder, and on another it's top/left of the Placeholder itself.
This is making it difficult for me to calculate what the X/Y values should be.
Any assistance greatly appreciated.
Jeff
PlaceHolder
Re: PlaceHolder
Support · Jun 28, 2007Hello Jeff,
The image or any page element added in the LaidOut event will be added with respect to the PlaceHolder's position. The 0,0 position of the image will be the top left corner of the PlaceHolder. The place holder will be added with respect to the page coordinates. You will have to calculate the X, Y position of the image with respect to the Place holder.
Thanks,
ceTe Software Support Team.