The recent change to @callmethod caused issues for us as well, at first...

They were easily fixed by making sure to use the @varParam tag if you were
passing any sort of variables as parameters to the @callmethod tag.

Look it up, I suspect it's the solution to your problem.

/John

On Wed, Jan 21, 2009 at 11:53 AM, Stefan Gonick <[email protected]
> wrote:

> I forgot to mention in my prior post that sometimes quoting each parameter
> can help, but sometimes not. It depends on the result of the parameter's
> evaluation.
>
> Stefan
>
> ------------------------------
> *From*: "Stefan Gonick" <[email protected]>
> *Sent*: Wednesday, January 21, 2009 12:26 PM
> *To*: [email protected]
> *Subject*: re: SPAM-MED: Witango-Talk: 5.5 Server - Single Quote Issue
> With ActivePDF Toolkit
>
>
> The behavior of parameter processing for callmethod was intentionally
> changed in 5.5.
> I personally feel that the changes made things worse rather than better,
> but With
> felt that it now behaves more "correctly."  Basically, it evaluates the
> parameters
> before passing them through. The other problem that you now have is if an
> parameter has a comma in it, this will be interpreted as two parameters. :(
>
> The good news is that the call method action still works correctly. You can
> pass in parameters with single quotes and commas and such without a
> problem.
> So, the callmethod tag and the call method action behave differently. It's
> something
> that I have been frustrated with for a long time, but it will not likely be
> fixed since
> it's not considered to be broken.
>
> Stefan
>
>
> ------------------------------
> *From*: Witango Talk <[email protected]>
> *Sent*: Wednesday, January 21, 2009 11:57 AM
> *To*: [email protected]
> *Subject*: SPAM-MED: Witango-Talk: 5.5 Server - Single Quote Issue With
> ActivePDF Toolkit
>
> Hello All,
> We're finally proceeding with an upgrade from 5.0 to 5.5.  While testing
> and working through small fixes, I'm having an issue that I can't find a
> good work around for.  Server setup is:
>
> Windows Server 2003
> Witango 5.5 Professional
> ActivePDF Toolkit
>
> We've used the same setup on Windows 2000 and 5.0 for years and all has
> been fine when working with the ActivePDF Toolkit.
>
> The issue is specifically with single quotes and the ActivePDF Toolkit COM
> Object.  Using the <@CALLMETHOD> we call either GetTextWidth or PrintText
> and pass a variable that contains a single quote and an error will occur.
>  Obviously, I can remove the single quote all together, but I need the
> character in there.  I've tried all sorts of work arounds but nothing
> accomplishes the goal of having the single quote on the pdf.  I can encode
> the string, but the activepdf doesn't decode it leaving the encoded value on
> the pdf.
>
> Was the COM interface changed in the upgrade from 5.0 to 5.5?  Does anyone
> have any suggestions on a work around?
>
> Also, on a related subject, when we pass an empty string to the PrintText
> method, it displays as 6 questions marks on the pdf.  This obviously looks
> like crap on the pdf.  To work around that, I've written a <@IFEMPTY> check
> im the call and pass a <@CHAR CODE="32"> instead of the empty variable, but
> it's not feasible to do that with every application that uses the toolkit.
>
> Any ideas/help?
>
> Thanks,
>
> Dave Green
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>


-- 
/John

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to