Textarea Coordinates??!

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v2.x and older)  /  Display Thread

DynamicPDF Generator for COM/ActiveX (v2.x and older) Forum

 Apr 23 2010 4:58 AM
Hi,

Trying to write the X, Y Coords. for the textareaobject always results in the following

Code:
set objTextArea=objPage.AddTextArea("Some Text",340,200,250,12)
response.write "x:" &objTextArea.X &"<br>"
response.write "y:"&objTextArea.Y &"<br>"
response.end

When executing this on a ASP page i get the following result:
x:200
y:200

Could someone give me an explanation on this?
Wouldn't the correct values be
x:340
y:200
????

Please help, cause this really messes up my layout..

Reg.
Kjell Brandes
 Apr 23 2010 5:52 AM
Posted by a ceTe Software moderator
Hello Kjell,

We are able to run the same code without any problem. We are getting correct values only. Can you please tell what exact version of our product are you using? Please make sure that you are using the latest build of that version. You can get the latest build from our CustomerArea by logging in using your serial number.

Thanks,
ceTe Software Support Team.
 Apr 23 2010 6:15 AM
Ok, strange.
I'm using DynamicPDF™ Generator v2.6.0c for COM/ActiveX.
I' am debugging a large codebase so I'm not sure of alla code in the codebase, but is there a way to set this behaviour on your component?
I can't find anything about it in your documentation which I installed with the software.

Thanks in advance..

reg
Kjell Brandes
 Apr 23 2010 6:31 AM
Just to clarify, this is in a doscument called testing.asp

<%
set objDoc = server.createobject("DPDF_Gen.Document")
objDoc.Creator = "Semcon Competence Manager PDF-Generator"
Set objPage = objDoc.AddPage()
set objTextArea=objPage.AddTextArea("Some Text",34,200,250,12)
response.write "x:" &objTextArea.X &"<br>"
response.write "y:" &objTextArea.Y &"<br>"
response.end
objDoc.DrawToASP
%>

This code renders:
x:200
y:200

Removing response.end places the "Some Text" according to the x-y coords. So theres no problem, the problem arises when I want to use the coords to place the following object, I'm sure you understand why..

Thanks for the quick response!

reg.
Kjell Brandes
 Apr 23 2010 9:28 AM
Posted by a ceTe Software moderator
Hello Kjell,

We are able to see this behavior using the exact code you have given and we have forwarded this issue over to the developers to look into it further. We will post a message as soon as we have some information on this.

Thanks,
ceTe Software Support Team.
 Apr 23 2010 9:56 AM
Thanks a lot!

Reg.
Kjell Brandes
 May 11 2010 5:14 AM
Is there any progress on this case?
This bug really sets me back in my plan.

reg
Kjell Brandes
 May 11 2010 1:10 PM
Posted by a ceTe Software moderator
Hello Kjell Brandes,

We have this issue fixed and can you please send over an email to our Support Team so that they can give you the latest build dll with fix?

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 1:42 PM.