Reputation: 1764
I'm trying to do an Document file in XAML
and I need to set the Width and Height with equivalent values to an A4 sheet(Width: 210mm. Heigth: 297mm).
Anyone knows how to do that?
Upvotes: 0
Views: 217
Reputation: 122
After short Googling, I found this:
You can use the second version:
<object PageWidth="qualifiedDouble"/>
qualifiedDouble
A double value as described above, followed by one of the following unit specifiers: px, in, cm, pt.
It's the same with PageHeight, so overall I think using it this way could solve your problem:
<FlowDocument PageWidth="21cm" PageHeight="29.7cm" />
Upvotes: 1