반응형

<FlowDocumentPageViewer
  Name="flowDocPageViewer" 
  MinZoom="50" MaxZoom="1000"
  Zoom="120" ZoomIncrement="5"
  />

void SaveFlowDocumentPageViewerWithXAMLFile(string fileName)
{
    // Open or create the output file.
    FileStream xamlFile = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
    // Save the contents of the FlowDocumentReader to the file stream that was just opened.
    XamlWriter.Save(flowDocPageViewer.Document, xamlFile);

    xamlFile.Close();
}
반응형

'Program > WPF' 카테고리의 다른 글

GridSplitter 로 열 크기 조정  (0) 2009.08.21
GridSplitter 로 행 크기 조정  (0) 2009.08.21
스크롤 있는 Expander 만들기  (0) 2009.08.21
간단한 Expander 만들기  (0) 2009.08.21
XAML 개요  (0) 2009.08.06

+ Recent posts