On several mailing templates we allow the user to upload their logo, which
is placed above their return address. Here are the goals:
- Logo is not required.
- Max height of logo is restricted (let's say 1"), so could be scaled.
- If logo not uploaded, company name is written out.
I've written a formatted text rule, which works correctly in FPDesktop,
but not on the web. Any help appreciated.
Additionally, since I've specified height in the tagged text, I'm assuming
that (from my tests) the image would scale (up/down) to 1" (7200 hundreths
of points). I'll have to figure out what happens if the uploaded logo is
under 1" in height...
===========================
pdfString = Field("cuname");
if (Field("logo") != "") {
tLogo = new FusionProResource(Field("logo"), "graphic", "true");
if (tLogo.exists)
pdfString = '<graphic resource="' + tLogo.name + '"
height="7200">';
}
return pdfString;
===========================
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--