I'm looking to create some custom code for Infopath (with Visual Studio 2010) to take certain data fields within the form and export them to Excel, mapping this data to the correct cell. Is there a way to do this? I've attempted excel services, but it never places the data in the right place (if it gets the data at all). I've found some information on Microsoft.Office.Interop.Excel.Application through some searching... is this what I should use to do this?
Thanks in advance
Siddharth Rout gave me a great solution here (http://www.siddharthrout.com/vb-dot-net-and-excel/) and it was exactly what I wanted. Thanks!
Related
I have Lightswitch 2013 and need to have nested autocomplete boxes. All the examples on the Internet are for older versions of Lightswitch and there are just a few differences in their examples from my version. Example: When adding Data Item for Local Property, Type "someTable" (Entity) doesn't come up as a choice. Also, if I click on one of my tables, then when I drag this Local Property to the screen is doesn't create an autocomplete box. Seems simple, but frustrating when I've tried many different ways. Please provide specific example using Lightswitch 2013. Thanks in advance. Steve
The steps are:
(1) Create a table called Customers(Id, Name) and a table called Orders(Id, CustomerId, Description) Create a foreign key relationship between Customers.Id and Orders.CustomerId.
(2) Update your LightSwitch 2013 Data Source
(3) Create an Add/Edit screen using the Orders table.
(4) By Default, all the fields (Id, Customer, Description) should be included. The Customer field should default to 'Details Picker' (The Choices will be 'Auto' and will lookup Customers in the Customers table)
Note: The Details Picker will AutoComplete after you type a minimum of three characters.
Thanks for the answer. I figured it out myself. I played around with displaying fields on my screens to see what was actually happening until I finally found out that I can add a specific data binding? to my properties and didn't have to use the drop down choices. I've got it working now.
This seems like a basic requirement for using Lightswitch. I wish someone would be able to post a detailed step by step solution to properly using nested autocomplete boxes. I'm not sure I would remember how to do nexted autocomplete boxes if I had to do this again in a year.
When an expert, like a Beth Massi, provides a detailed example for a specific version of Visual Studio or Lightswitch, it would be nice if that expert, or his/her replacement, would provide a new detailed example whenever Visual Studio or Lightswitch has a new version. Thanks for all the help I have received by searching the Internet.
I am working on internationalizing an old MFC project and I have many thousands of hard-coded strings to move into the string table. I'm looking for a macro, add-in, or some information on creating a macro, add-in, or wizard that would allow me to semi-automate the process. I would like to be able to highlight a string, right-click and select something like "move to resource" and have the string added to the string table for the project. Something customizable would be great such that I could edit the identifier created and have the tool replace the hard-coded string in the code with a look up function (that I provide the name of). I searched for a few days and can't find anything like this. Does anyone know of a tool already in existence, or can provide some info on what VS extensiblity classes I can use to write one? I am using VS2010.
Thanks.
Have you looked at http://www.lingobit.com/products/hardcoded_string_extraction.html ? This is the only product I know of that does this. It's a hairy problem because there are so many corner cases.
I’m facing some issues with the Netronic XGantt ActiveX. My problem is that my ActiveX in the Form doesn’t seem to find the table I specified in the config panel.
I can't post a screenshot here since I'm new (I don't have 10 points) so this is a link to it.Configuration panel screenshot
I tried with a CSV file storing the nodes information, it works well.
Is the name SAG_GANTT_SOURCE_MODEL used properly? Knowing that I already created a table with this name and those fields in the screen capture.
Is there any further configuration elements I need to consider?
I can do as I wish following the classes some Dynamics AX projects (Gantt) uses but it seems to me that it’s too much work for implementing a simple component, isn’t it?
Since I can’t find any documentation/article/tutorial to use the XGantt ActiveX properly (except this one which I already saw http://community.dynamics.com/product/ax/axtechnical/b/axfortechies/archive/2010/05/28/activex-gantt-chart-control-in-dynamics-ax.aspx)
I’m wondering if you have any document, a link or a contact to help me with my issue.
Thanks for your attention.
Have you tried Netronic. I think they can generate a license file which you can import and this would enable the disgner of the control. Also they probably still have some pdf documents on thier website.
I am new to Dynamics CRM so please excuse me for the newbie question xD
I managed to create an option set field with 2 possibilities:
Scheme 1
Scheme 2
Does anyone have an idea how when a particular possibility is picked, a list of custom based fields will appear in the form? Thanks in advance
If i understand your problem correctly you want certain fields to appear/disappear according to the choice selected in the option set.
The way I see this working is by implementing a Javascript on the onChange event of the option set. you can do this from the 'Form Properties' when changing the layout of the form.
Below is a link showing some examples of possible useful commands that might help you:
http://www.powerobjects.com/blog/2011/01/14/crm-2011-useful-javascript-tidbits/
You can put your custom fields in a custom tab and then hide/disable it according to the value in the option set.
If you have any further problems feel free to ask :)
I hope this helps :)
Gdluck
If you are comfortable working in Visual Studio, I highly recommend installing the Developer Toolkit (You can find the .msi \tools\developertoolkit - download it from here). It will allow you to develop JScript with some syntax highlighting and intellisense and makes source control and deployment a snap.
I'm looking for some high-level help with determining the best type of Visual Studio 2010 project to use for an Excel custom application.
I will be developing a program that requires the user to enter a dataset in a particular way. Not using a form per se, but rather in columns and the program will need to do some custom validation on the items in order to prep the data. From there, the user will be able to conduct various operations on the data via a custom Ribbon and associated options. The program will also transmit the data via web service.
I've fooled around with the Add-In project and that gives me a lot of what I need but I'm wondering if a Template or Workbook project is better for this in terms of data entry and being able to "guide" the user a little more.
How do you go about choosing between which project type to use? Do all the project types support a custom Ribbon?
Sorry if this is too far off topic. I'm referring to VBA, not Visual Studio, but it might still be relevant.
With an AddIn, compared to a Workbook, you can separate your code from the user's data. So, if the code is complex, and you'll need to update it separately from user's workbooks with data, this is not a bad idea.
With an AddIn, you can add buttons that do things like check to make sure the user data workbook is ok, or process it in someway. However, the AddIn custom buttons will load ever time a user opens any Excel worksheet. This doesn't sound good, but in practice, isn't so bad. You can code your AddIn so it does nothing as long as no one uses a button, so it almost doesn't hurt load times, etc...
A Workbook might be useful if you need to really guide the user - that is, you cannot rely on the user to hit a button to verify something, and instead you need to verify on every change, for example. However, the workbook solution incorporates the user data and your code in the same workbook, so if you need to update the code for existing users' data, that's harder.
I use a combination of AddIn (.xlam) with buttons, and a template (with minimal self-describing data only).
I'm not sure about the template-only option, so won't comment on that.