4

テキストと画像を含む文書を印刷したい。テーブルと BlockUIContainers を含む FlowDocument を使用しています。ビジュアルスタジオでは画像が表示されますが、実行時に画像セクションを印刷したい場合は空白です

<BlockUIContainer>
      <Grid>
          <Image 
                Grid.Column="0"
                Source="/Resources/company.jpg"
                Height="97"
                Width="184"
                HorizontalAlignment="Left" />
      </Grid>
</BlockUIContainer>

 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     PrintDialog printDialog = new PrintDialog();
     if (printDialog.ShowDialog() == true)
     {
            printDialog.PrintDocument(((IDocumentPaginatorSource)flowdocument).DocumentPaginator, "Flow Document Print Job");
     }
 }

この動作には何か理由がありますか? 解決策はありますか?

私はキャンバスにすべてを入れなければならないと考えていました。その後、printVisual関数を実行しますか?

4

0 に答える 0