dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

Example doesn't match page

Open jskeet opened this issue 1 year ago • 3 comments

Type of issue

Missing information

Description

The page for XpsDocument.CreateXpsDocumentWriter claims to have a sample for that method: "The following example shows how to use the CreateXpsDocumentWriter method in order to write an XpsDocument"

... but the sample is WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd) which appears to be completely irrelevant.

Possibly just some incorrect linking?

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.windows.xps.packaging.xpsdocument.createxpsdocumentwriter?view=windowsdesktop-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Xps.Packaging/XpsDocument.xml

Document Version Independent Id

dd3aead6-8437-6637-59c4-74234f51956f

Article author

@dotnet-bot

jskeet avatar Aug 01 '24 18:08 jskeet

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ghost avatar Aug 01 '24 18:08 ghost

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ghost avatar Aug 01 '24 18:08 ghost

Tagging subscribers to this area: @dotnet/wpf-developers