i have done this and it works fine.But the data connection for receive purpose will work fine untill i have not created any subsite.Because subsite's library url will be different from the provided one.
For that reason i m trying to use code behind in which i used the load event of the form, performing some checks and then capturing the current web.But an error like this occurs when i open my published form
"Forms that require the domain permission level contain features that access information on a network, such as data connections, linked images, and code."
I m totally stuck here for the past 3 days.Thank u so very much for your reply and m sure you would again try to help me.
Thanks