0

I have a WPF application that load a FlowDocument from a embedded resource, with the following code

object something = XamlReader.Load( stream );

The parser tell me he cannot find the "clr-namespace:ReportPrinter" at

<FlowDocument
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:ReportPrinter"
>

A quick search with google tell me i need to specify the assembly, but how i can do it?

1 Answer 1

1

You simply append the name of the assembly containing the specified class to the definition of the namespace. A good example of the correct string can be found at MSDN. There is also a description about the different possibilities to describe a certain assembly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.