Is there a way to include the WaterMark adorner visual in XPS printouts when creating the FixedDocument?
Is there a way to include the WaterMark adorner visual in XPS printouts when creating the FixedDocument?
Hi Bill,
I haven't tried it but I believe you can change the adornment manger to target printer views like this and that it should accomplish what you're trying to do:
public class WatermarkAdornmentManager : AdornmentManagerBase<IPrinterView> {
Hey,
Thanks for the reply!
If I do what you propose, then it looks like the adorner only applies to the print view. What I need is for the WaterMark adornment to print along with the EditView contents when executing a normal print to XPS. I am not sure how to make it part of the FixedDocument creation.
Hi Bill,
If you want it in both, then I believe you can use ITextView as the type parameter, since that is base type for both kinds of views.
Hey,
That did the trick. Thanks!
Please log in to a validated account to post comments.