Printing WPF/C# LL18

I am new to WPF programming / C #. I’m trying to create a printed invoice by checking the appropriate preview. In MFC I have no problems, but in WPF I just can not produce anything. I wish I could create a print without a datasource. How can I do?
Thank you.

Why would you want to print a report without a datasource? You’d need to supply “some kind” of data anyway. For fixed identifiers, I usually declare a class that has the required members and pass a List of instances of this class as data source. That’s just as easy as it gets .

HTH
G.