Permalink
Browse files

Active SectionRendering in Samples

  • Loading branch information...
1 parent 28047a4 commit 0efffa09d50b48d07ccbf73deec4763992538306 @PeterForstmeier PeterForstmeier committed Jul 6, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs
@@ -14,6 +14,7 @@
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
+using ICSharpCode.Reports.Core.Globals;
namespace SharpReportSamples
{
@@ -113,7 +114,7 @@ private void RunStandardReport(string reportName)
else if (s == "NoConnectionReport") {
this.RunProviderIndependent(reportName);
} else if (s =="EventLog")
- this.RunEventLogger(reportName);
+ this.RunEventLogger_Pdf(reportName);
else {
@@ -338,12 +339,12 @@ private void RunEventLogger (string fileName)
//Handles SectionRenderEvent
-// int hour = 0;
+ int hour = 0;
private void PushPrinting (object sender, SectionRenderEventArgs e )
{
string sectionName = e.Section.Name;
- /*
+
if (sectionName == ReportSectionNames.ReportHeader) {
Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportHeader);
}
@@ -362,14 +363,14 @@ private void PushPrinting (object sender, SectionRenderEventArgs e )
int newhour = dateTime.Hour;
if (hour != newhour) {
hour = newhour;
- e.Section.Items[0].DrawBorder = true;
+// e.Section.Items[0].DrawBorder = true;
e.Section.Items[0].FrameColor = Color.Black;
// e.Section.Items[0].BackColor = Color.LightGray;
time.DBValue = dateTime.Hour.ToString();
time.ContentAlignment = ContentAlignment.MiddleLeft;
} else {
- time.DrawBorder = false;
+// time.DrawBorder = false;
e.Section.Items[0].FrameColor = Color.White;
// e.Section.Items[0].BackColor = Color.White;
time.DBValue = dateTime.Minute.ToString() + ":" + dateTime.Second.ToString();
@@ -413,7 +414,7 @@ private void PushPrinting (object sender, SectionRenderEventArgs e )
else{
throw new WrongSectionException(sectionName);
}
- */
+
}

0 comments on commit 0efffa0

Please sign in to comment.