Use our Google Custom Search for best site search results.
Search
-
Hello:
Here are two different links that can get you started: http://www.classdotnet.com/CsReadToByteArray.html has a code sample that reads a file (like the one on your local drive) into a byte array. This post: ...
-
Hello:
It looks as if your data source you wish to query is your main data source, so in VB.NET:
MainDataSource.QueryConnection.Execute()
All you need to do is set the values of the query fields you want to use first. So, for example, let's say you want to query your database and find a row where MATNR = field1, VKORG = field 2 and VTWEG ...
-
Hello:
I was reminded by someone else that these attachments have a header that you can use to get the name of the file. Please see this helpful blog post for more information: http://chrissyblanco.blogspot.com/2006/07/infopath-2007-file-attachment-control.html
-
Hi --
Silly question, but I maybe wasn't clear enough earlier -- I'm using ProjectName as a placeholder for the actual name of the project. When I look at the first .config you pasted in, I see that your actual project name is "ICOE_WeeklyReport" -- is that correct? And I am guessing that is still your project name. Did you ...
-
Hello:
I've done this with an open InfoPath form, connected to the Changed event on a picture control using the following code:
string time = DateTime.Now.ToString("ddMMyyyyhhmmss");
string fileName = selectedField + time;
byte[] data = Convert.FromBase64String(picBase);
//write the file
FileStream outFile = new FileStream(path ...
-
Hello:My .config looks like the first part of yours -- with my sql connection string stored in a setting element:
<applicationSettings><ProjectName.Properties.Settings>
<setting name="SQLConnectionString" ...
-
Hi, Charlie:
I would expect this line:
var selectedNode = doc.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Project_Metrics_Library/@Project_Name=['selectedField']");
to look more like this:
var selectedNode = ...
-
Hi:
You can create a setting to store the information, which will place it in an app.config file in your project.
To add the setting, go to Project/ ProjectName Properties in VSTA. Select the settings tab. If you have no current settings configured, there will be link in the center of the page you can click to create the app.config file. Now ...
-
I can't think of a way to do that with data validation -- even if you format the field to display the day of the week the value of the field will be the date. It could be done with code, of course, if you are not adverse to that approach.
-
Whoops! I see I was a bit late to the party! :)