1

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?

kmatyaszek
  • 19,016
  • 9
  • 60
  • 65
zWeRz
  • 81
  • 10

1 Answers1

1

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.

Clemens
  • 123,504
  • 12
  • 155
  • 268
  • Just in case `1000` doesn't work, `double.MaxValue` is your friend. It may be overkill but there's no other kill like it. – Will Nov 28 '16 at 06:54