Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Print report on tag change
PostPosted: Wed Nov 04, 2015 5:22 pm 

Joined: Sat Jul 04, 2015 6:13 am
Posts: 25

Offline
I'm preparing some code for a site visit so I can't test this at the moment.

When tag Controller1_M18 turns on I want to print a report and then reset the tag. This code I'm putting in the Tags Script module is giving me a simulator error "The name 'PrintReport' does not exist in the current context". Can anyone give me guidance in fixing it?

Code:
namespace Neo.ApplicationFramework.Generated
{
    using System.Windows.Forms;
    using System;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
   using Neo.ApplicationFramework.Tools.Reporting;
   
      public partial class Report_Functions
   {
      void Controller1_M18_ValueOn(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
      {
         // Print the report.
         PrintReport("BatchReport1");
         // Reset the tag.
         Globals.Tags.Controller1_M18.ResetTag();
      }
   }
}


Many thanks.


 Profile  
 
 Post subject: Re: Print report on tag change
PostPosted: Mon Nov 09, 2015 7:40 am 

Joined: Sun May 31, 2015 2:38 am
Posts: 14

Offline
Try with

Code:
Globals.Reports.BatchReport1.Print();


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: