Pergunta

Have one problem with FlowDocumentReader. When the "one page view" selected it looks something like that.

enter image description here

But i want to have only one column, can anyone advise me a solution?

Foi útil?

Solução

You can control the number of columns by setting a "minimum" column width of the current document. Simply set the FlowDocument.ColumnWidth property to some large value to get just one column:

reader.Document.ColumnWidth = 1000;

The documentation says that

A value of Double.NaN causes only one column to be displayed, regardless of the page width. The default is Double.NaN.

but apparently the former is not true.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top