How to open form by timing - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to open form by timing

Last post 02-15-2007 08:08 AM by nukkumatti. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-15-2007 04:00 AM

    How to open form by timing

    I have a tamplate Infopath for, the published to a SharePoint Library!

    Can I put any object/commponent in the form that will open it automatic/sent it by mail in a given paramater of time???
  • 02-15-2007 08:08 AM In reply to

    Re: How to open form by timing

    As I am not familiar with SharePoint I don't know if the system can handle that it self.

    But just an Idea, I have never tried it though.
    Write a new console application and put the following code in it:
    	class Class1
    {

    [STAThread]
    static void Main(string[] args)
    {
    while(true)
    {
    loop(10000);
    }


    }
    public static void loop(int timer)
    {
    Thread.Sleep(timer);
    Console.WriteLine("Slept well now I am gonna send the InfoPath form");
    //get the file from sharepoint
    //write a custom mail event here and send the mail including the form as an attachment
    }
    }
    }


    This will fire your event every 10000milliseconds if I remember correct.

    Could you use something like this ?
    Listen to Motörhead cos they play Rock'n Roll :)
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.