Friday, February 17, 2012

DTS w/ C#

I am executing a DTS package with a Console app and everything works fine.
I am now constructing a "Windows Application" to execute the package. This
fails (using the identical code). I can't figure out how to display the
package events using a WinForm (everything I find shows me how to use it
with a console app which is working just fine).
So ... how do I display errors in a Form?
... why do you think that it wont work in a form?
Because WinForms require the UI to be updated from the main thread, you need
to use BeginInvoke, see
http://samples.gotdotnet.com/quickst...rshalling.aspx
GertD@.SQLDev.Net
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright SQLDev.Net 1991-2005 All rights reserved.
"seth via droptable.com" <forum@.nospam.droptable.com> wrote in message
news:a77def4c0b414c65b4570e1e656aa5f0@.droptable.co m...
>I am executing a DTS package with a Console app and everything works fine.
> I am now constructing a "Windows Application" to execute the package.
> This
> fails (using the identical code). I can't figure out how to display the
> package events using a WinForm (everything I find shows me how to use it
> with a console app which is working just fine).
> So ... how do I display errors in a Form?
> ... why do you think that it wont work in a form?

No comments:

Post a Comment