Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

print chart to xps

$
0
0

hello,

i created a chart in a fixeddocument. i used clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit

i have a problem when i print the document. i used this code

        Dim fd As FixedDocument = stampa.FindName("myFixedDocument")
        Dim xpsd As Packaging.XpsDocument = New Packaging.XpsDocument("G:\test.xps", System.IO.FileAccess.ReadWrite)
        Dim xw As XpsDocumentWriter = Packaging.XpsDocument.CreateXpsDocumentWriter(xpsd)
        xw.Write(fd)
        xpsd.Close()

the file printed don't show the barchart. print all except bar.

can anyone help me?

thanks

Marco


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>