12 changed files with 122 additions and 12 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<UserControl |
||||
x:Class="ICSharpCode.Reporting.WpfReportViewer.WpfReportViewer" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
<Grid> |
||||
|
||||
<DocumentViewer |
||||
x:Name="DocumentViewer" |
||||
Document="{Binding Path=DataContext.Document, |
||||
PresentationTraceSources.TraceLevel=High, |
||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" |
||||
HorizontalAlignment="Stretch" |
||||
VerticalAlignment="Stretch" |
||||
SnapsToDevicePixels="True"></DocumentViewer> |
||||
</Grid> |
||||
</UserControl> |
||||
@ -0,0 +1,65 @@
@@ -0,0 +1,65 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
using System; |
||||
using System.Collections.ObjectModel; |
||||
using System.Reflection; |
||||
|
||||
using ICSharpCode.Reporting.Exporter.Visitors; |
||||
using ICSharpCode.Reporting.Interfaces; |
||||
using ICSharpCode.Reporting.Items; |
||||
using ICSharpCode.Reporting.PageBuilder.ExportColumns; |
||||
using NUnit.Framework; |
||||
|
||||
namespace ICSharpCode.Reporting.Test.Expressions.InterationTests |
||||
{ |
||||
[TestFixture] |
||||
[Ignore] |
||||
public class GlobalsFixture |
||||
{ |
||||
IReportCreator reportCreator; |
||||
Collection<ExportText> collection; |
||||
ExpressionVisitor expressionVisitor; |
||||
|
||||
[Test] |
||||
public void TestMethod() |
||||
{ |
||||
reportCreator.BuildExportList(); |
||||
/* |
||||
var script ="=Globals!PageNumber"; |
||||
collection[0].Text = script; |
||||
var visitor = new ExpressionVisitor(new ReportSettings()); |
||||
var exportContainer = new ExportContainer(); |
||||
exportContainer.ExportedItems.Add(collection[0]); |
||||
visitor.Visit(exportContainer); |
||||
Assert.That (collection[0].Text,Is.EqualTo("Sharpdevelop is great")); |
||||
*/ |
||||
} |
||||
|
||||
[SetUp] |
||||
public void CreateExportlist() { |
||||
collection = new Collection<ExportText>(); |
||||
collection.Add(new ExportText() |
||||
{ |
||||
Text = "myExporttextColumn" |
||||
}); |
||||
} |
||||
|
||||
|
||||
[SetUp] |
||||
public void LoadModelFromStream() |
||||
{ |
||||
Assembly asm = Assembly.GetExecutingAssembly(); |
||||
var stream = asm.GetManifestResourceStream(TestHelper.RepWithTwoItems); |
||||
var rf = new ReportingFactory(); |
||||
var reportingFactory = new ReportingFactory(); |
||||
reportCreator = reportingFactory.ReportCreator(stream); |
||||
} |
||||
|
||||
|
||||
[TestFixtureSetUp] |
||||
public void Setup() { |
||||
|
||||
expressionVisitor = new ExpressionVisitor(new ReportSettings()); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue