HTML Tags and PDF Output
Posted: Mon Jan 31, 2011 9:08 am
I'm finding that the layout breaks when I output a PDF that has data fields with the HTML tags feature turned on. So right now, im outputting the address like this:
My Code:
{Supplier_Info.address1}{IIF(Supplier_Info.address2 + " " == " ", "", "")}{Supplier_Info.address2}
{Supplier_Info.city}, {Supplier_Info.state_ab} {Supplier_Info.companyzip}
Which is basically this:
address1
address2
city, state, zip
The after address1 is conditional based on if address 2 has data.
If PDFs do not support this feature, how can I add a conditional line break and achieve the same output that will carry over to a PDF?
On a side note, the only way I could see if the database field was an empty string, was to do it like this: {IIF(Supplier_Info.address2 + " " == " ", "", "")}. I had to add a space to it, and see if it is a space. Is there a cleaner way? I tried comparing it to an empty string and null.
Thanks
My Code:
{Supplier_Info.address1}{IIF(Supplier_Info.address2 + " " == " ", "", "")}{Supplier_Info.address2}
{Supplier_Info.city}, {Supplier_Info.state_ab} {Supplier_Info.companyzip}
Which is basically this:
address1
address2
city, state, zip
The after address1 is conditional based on if address 2 has data.
If PDFs do not support this feature, how can I add a conditional line break and achieve the same output that will carry over to a PDF?
On a side note, the only way I could see if the database field was an empty string, was to do it like this: {IIF(Supplier_Info.address2 + " " == " ", "", "")}. I had to add a space to it, and see if it is a space. Is there a cleaner way? I tried comparing it to an empty string and null.
Thanks