Sevices, XML and Crystal Report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sganeshcse
    New Member
    • Aug 2007
    • 6

    Sevices, XML and Crystal Report

    Hi Friends,

    I have to implement the below logic in my project...

    1) XML file will be dropped into a specific folder. Let us say, ‘PACKFOLDER’.
    2) A Service needs to monitor this folder. XML might fall every second.
    3) Pick one XML(oldest time) and run the report and print in the printer specified in the XML.
    4) Move the XML processed to another folder or ‘delete’ it.
    5) Run steps 2 to 5 again.

    Please somebody guide me resolve this issue....

    Thanks
    Ganesh
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    It sounds very much like you have the workflow of your project well defined.

    Bytes is very much a "Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind a place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.

    Do a little reading up and experimenting then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.

    Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events". I've found this to be a very effective tool.

    Comment

    • sganeshcse
      New Member
      • Aug 2007
      • 6

      #3
      I got you...But I don't need the code...I am not able to find the starting point, thats why I have asked this in bytes...

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Starting point for which area? You're talking about an entire application development.

        User interface
        Work flow
        Object layout
        "How do you write an XML file?"

        What is a starting point to you may not be a starting point to those reading your post.

        Comment

        • PRR
          Recognized Expert Contributor
          • Dec 2007
          • 750

          #5
          1) XML file will be dropped into a specific folder. Let us say, ‘PACKFOLDER’.
          2) A Service needs to monitor this folder. XML might fall every second.
          For this you can use FileSystemWatch er ... Append the file name and creation time in a
          Code:
          Dictionary<string, DateTime> fileDetails;
          Avoid writing heavy processing in OnCreated... (just append the file name and creation date as i said )
          3) Pick one XML(oldest time) and run the report and print in the printer specified in the XML.
          Use a System.Timers.T imer in service so that it can process the file (fileDetails<st ring, DateTime>)
          4) Move the XML processed to another folder or ‘delete’ it.

          5) Run steps 2 to 5 again.
          Specify required interval for system.timers.t imer

          Comment

          Working...