Is there a way to include the WaterMark adorner visual in XPS printouts?

SyntaxEditor for WPF Forum

Posted 8 years ago by Bill L
Version: 11.2.0554
Avatar

Is there a way to include the WaterMark adorner visual in XPS printouts when creating the FixedDocument?

Comments (4)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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> {


Actipro Software Support

Posted 8 years ago by Bill L
Avatar

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.

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

Posted 8 years ago by Bill L
Avatar

Hey,

That did the trick.  Thanks!

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.