Closed scionwest closed 8 years ago
Thank you for the feedback. I have pushed new changes to the library. Please use PrintContent.TextLine
method to add plain strings. There are also some useful methods in PrintContent
class.
But the above stated issue is still present. I will fix that using the StringLineItem
class if you use PrintContent.TextLine
For your code do not use MyShownObjectLineItem
use PrintContent.TextLine
There are some breaking changes:
FileName
is not virtual anymore (set it through constructor of the deriving class)PrintDefinition
is not virtual anymore (set it through constructor of the deriving class)PrintDimension.*Height
anymoreDo you have a version of this already compiled I can get? I'm not able to get this to build because of missing dependencies, such as the JetBrains
annotations. I don't have ReSharper, which I think is required for those.
JetBrains.Annotations
should be recovered at build time because of NuGet
. You do not need to install ReSharper.
For a comiled version, I will try to resolve #1 as fast as possible.
You can now find a compiled version of this library on NuGet Mairegger.Printing
Awesome thanks!
I have the following block of text that comes in from our database that gets stuffed into a model property and i'm adding it to the
MyShownObjectLineItem
in your example app.Due to the length of this string, the content needs to wrap onto the next page. A second page is created, but it is blank. I assume this is because WPF knows the content of the control doesn't fit on the 1st page completely, but doesn't render the remaining contents onto the 2nd page.
Is there a way for me to calculate the remaining height on a page, and determine based on the number of characters in my string, splice the string up into multiple
IPrintContent
instances that can properly span multiple pages?