|
|
|
@ -60,8 +60,6 @@ namespace ICSharpCode.Reporting.WpfReportViewer.Visitor
@@ -60,8 +60,6 @@ namespace ICSharpCode.Reporting.WpfReportViewer.Visitor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Canvas RenderSectionContainer (ExportContainer container) { |
|
|
|
|
Console.WriteLine("--------------"); |
|
|
|
|
Console.WriteLine("Container {0}",container.Name); |
|
|
|
|
var canvas = FixedDocumentCreator.CreateContainer(container); |
|
|
|
|
foreach (var element in container.ExportedItems) { |
|
|
|
|
if (IsContainer(element)) { |
|
|
|
@ -132,18 +130,9 @@ namespace ICSharpCode.Reporting.WpfReportViewer.Visitor
@@ -132,18 +130,9 @@ namespace ICSharpCode.Reporting.WpfReportViewer.Visitor
|
|
|
|
|
null, |
|
|
|
|
new Rect(location,new Size(exportColumn.Size.Width,exportColumn.Size.Height))); |
|
|
|
|
} |
|
|
|
|
//http://stackoverflow.com/questions/4542717/length-of-string-that-will-fit-in-a-specific-width
|
|
|
|
|
// http://stackoverflow.com/questions/9264398/how-to-calculate-wpf-textblock-width-for-its-known-font-size-and-characters
|
|
|
|
|
|
|
|
|
|
// var offset = FixedDocumentCreator.CalculateAlignmentOffset(formattedText,exportColumn);
|
|
|
|
|
// var newLoc = new Point(location.X + offset.X,location.Y + offset.Y);
|
|
|
|
|
|
|
|
|
|
// Console.WriteLine(" FT for {0} at {1}",formattedText.Text.Substring(0,5),newLoc);
|
|
|
|
|
// drawingContext.DrawText(formattedText,newLoc);
|
|
|
|
|
drawingContext.DrawText(formattedText,location); |
|
|
|
|
} |
|
|
|
|
var dragingElement = new DrawingElement(visual); |
|
|
|
|
|
|
|
|
|
UIElement = dragingElement; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|