Showing results 1 to 2 of 2

Thread: PrintDialog - scadaAddin

  1. #1
    Join Date
    01.02.2016
    Posts
    13

    Default PrintDialog - scadaAddin

    Hi all.

    How to make runtime add-in, which will open the Print dialog settings window (MS Windows standard dialog) on button click?

    Thanks a lot in advance,
    MK

  2. #2
    Join Date
    01.02.2016
    Posts
    13

    Default Re: PrintDialog - scadaAddin

    using System;
    using System.Windows.Forms;
    using Scada.AddIn.Contracts;

    namespace PrinterSelect
    {
    re"> /// <summary>
    re"> /// Description of Project Wizard Extension.
    re"> /// </summary>
    re"> [AddInExtension("Your Project Wizard Extension Name", "Your Project Wizard Extension Description")]
    re"> public class ProjectWizardExtension : IProjectWizardExtension
    re"> {
    re"> #region IProjectWizardExtension implementation
    re">
    re"> public void Run(IProject context, IBehavior behavior)
    re"> {
    re"> // enter your code which should be executed on triggering the function "Execute Project Wizard Extension" in the SCADA Runtime
    re"> PrintDialog PrintDialog1 = new PrintDialog();  
    re"> PrintDialog1.ShowDialog();  
    re"> }
    re">
    re"> #endregion
    re"> }

    }

Similar Threads

  1. Populating ListBox with a list created in ScadaAddin.
    By lsimas3 in forum Add-In Framework
    Replies: 2
    Last Post: 22nd November 2019, 10:43
  2. Using Zenon 8.20 variables in scadaAddin script
    By lsimas3 in forum Add-In Framework
    Replies: 3
    Last Post: 31st October 2019, 08:48
  3. Printdialog
    By sbc in forum zenon Supervisor
    Replies: 1
    Last Post: 19th June 2013, 10:34

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •