Showing posts with label font. Show all posts
Showing posts with label font. Show all posts

Sunday, February 12, 2012

checkboxes and exporting to PDF

How do you mange to create checkboxes on your reports?
Since there is no builting support for checkboxes, I have tried using:
Windings font:
=IIf(Fields!MyBooleanField.Value=False,ChrW(&h006F),ChrW(&h00FE))
that would give me the empty square and the ticked square (when previewed
in dhtml). However when exported to PDF, the ticked checkbox is replace by a
not desired different character.
Arial font:
=IIf(Fields!MyBooleanField.Value=False,ChrW(&h2212),ChrW(&h221A))
that would give me ? and -
This is more or less the best thing I have been able to do to mimic the
behaviour of a checkbox. However this is not a checkbox at all, it is just a
square root sign and a minus sign.
I need the report to be rendered into PDF format. I don't mind if the
previewed dhtml version works or not. I just need it to work for the PDF.
Another possibility is to do image captures of checkboxes and show one or
the other depending on value of the variables. I find that solution not very
nice; sure it will work, but I think there must be a smarter solution.
Has someone managed to mimic the behaviour of a checkbox in a report (that
renders fine to PDF)?
Thanks in advance.Hi jagb,
I have the same problem, did you find any solution?
Thanks, Markus
"jagb" wrote:
> How do you mange to create checkboxes on your reports?
> Since there is no builting support for checkboxes, I have tried using:
> Windings font:
> =IIf(Fields!MyBooleanField.Value=False,ChrW(&h006F),ChrW(&h00FE))
> that would give me the empty square and the ticked square (when previewed
> in dhtml). However when exported to PDF, the ticked checkbox is replace by a
> not desired different character.
> Arial font:
> =IIf(Fields!MyBooleanField.Value=False,ChrW(&h2212),ChrW(&h221A))
> that would give me ? and -
> This is more or less the best thing I have been able to do to mimic the
> behaviour of a checkbox. However this is not a checkbox at all, it is just a
> square root sign and a minus sign.
> I need the report to be rendered into PDF format. I don't mind if the
> previewed dhtml version works or not. I just need it to work for the PDF.
> Another possibility is to do image captures of checkboxes and show one or
> the other depending on value of the variables. I find that solution not very
> nice; sure it will work, but I think there must be a smarter solution.
> Has someone managed to mimic the behaviour of a checkbox in a report (that
> renders fine to PDF)?
> Thanks in advance.
>
>