Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Code Samples   (RSS)
Sorry, but there are no more tags available to filter with.
This code sample documents a block of VB.Net code I had to write recently for retrieving a block of data from a secondary datasource, and then copying that data into a child table of a dataset in the main datasource. I've copied it over as is for my benefit Read More...
VB.NET and probably the other managed code languages uses a new syntax for specifying nodes and traversing XML in a form. I don't claim to have a firm grasp on this, I only know what works. Let's say you've got a field in your form whose value you set Read More...
Folks, Just starting to get involved in dealing with VB.NET and VSTA in InfoPath 2007. A lot of what I've taken for granted in InfoPath 2003 and JScript no longer applies. Take Custom Task Panes for example. A neat idea, and super-useful. Doesn't work Read More...
Folks, Got a little code sample from a fellow watcher of Pashman's Goldmine (thanks Huseyin) on how to retreive the username of the current user via C# code. Since all code samples are useful, I've posted it below: public void FormEvents_Loading( object Read More...
Application.XDocuments.NewFromSolution(urlToXsnFile) or Application.XDocuments.Open(urlToXmlFile) Your form will need to require full trust in order to use either of these OM methods. Keep it simple, right? Tim Read More...
Hey folks, Like many of you, I'm being dragged into the land of managed code in order to achieve things that I've had oodles of JScript code samples to do for a long time. The InfoPath Toolkit for VS.NET allows you to write code in either VB or C#; since Read More...
Folks, Had an issue recently where a user of one of my solutions had pretty terrible bandwidth to the SQL server where they needed to submit data. The default timeout value on submits is 30 seconds. As it turn out, the default for queries too is 30 seconds. Read More...
Simple question, simple answer. Let's say you want to tell a user what version of the solution they are using. Technically the way the InfoPath works they don't need to worry about that, but let's just say you wanted to tell them. The following code shows Read More...
Folks, I have done a lot of work with making InfoPath live up to it's promise of providing an offline experience. That promise becomes a lot harder to fulfill when you are querying large datasets in your form to populate one dropdown lists or more likely Read More...
Hi Everybody, Hey sometimes you get a long form that requires you to do a lot of scrolling around to get to to the different sections. I use a lot of tricks with views and/or conditionally hidden sections to make things look like they all fit on one page. Read More...
Folks, Ran into a sticky issue the other day where a customer wanted a drop down list to be bound to a table (they put it as enforced referential integrity), but wanted to allow the users the ability to add values to the dropdown on the fly. The idea Read More...
Folks, In this post http://blogs.msdn.com/timpash/archive/2005/11/03/Alternate_Ways_To_Send_Mail.aspx I was a bit lax in getting the novice to a 100% solution. What I left out is that most often a user is going to want to pluck values out of the form Read More...
Folks, Been a little remiss in posting for a while. Been busy! In any case, I've encountered some nuances about interacting with BizTalk that I'd like to share. I often talk about how BizTalk and InfoPath are perfect bedfellows in that they are both XML Read More...
Ok, so it's easy to send an e-mail, post to a web service or post to a WSS/SPS Form Library using the canned data connections. That's all fine and well. It's not easy however to push a file to a file directory, either locally or to a file share somewhere Read More...
I've been asked multiple times on how to get a guaranteed unique value for a field in a form. It normally comes up in the context of a tracking id, or a request id - something that you know will be unique and will be a way to recall that entry at some Read More...
More Posts Next page »
 
Page view tracker