i am looking to create a drop-down list of items in excel through automation in C#, the items are taken from the values in the whole column throughout the file. The same functionality of right click on a cell and click "Create List"
I looked a bit through the internets but nothing works, i saw you could do this via Data validation, but can't find too much information about it
thx for any help
Maybe these links might help:
http://msdn.microsoft.com/en-us/vbasic/cc337988.aspx
http://msdn.microsoft.com/en-us/library/ms268997.aspx
Related
I have a list with columns on sharepoint online that I add programmatically but every time i enter the Log List page there is a button (only 1) that says "Exit quick edit" that I have to click in order to get to the edit view, new, export to excel etcetc.
I have read 100 blogs about removing the quick edit but not to remove the button before that.
So how can i remove that first button?
Programmatically or manually on sharepoint online would be nice to know how.
Thanks alot.
How to get list of macros names that's displayed in tab "Developer" by button "macros"? I found some solution (https://social.msdn.microsoft.com/Forums/vstudio/en-US/ef1de29a-81c7-424a-b7ab-f85286a1d8de/how-to-retrieve-a-list-of-macros-in-an-excel-workbook?forum=vsto), but it's work with button "Visual basic" in same tab. Maybe we can extract macros names from there?
"Maybe we can extract macros names from there?"
Obviously no, you can't.
And the answer in your link already said this "As far as I know, there is no a property which can be used to get the names of macros.".
So there is no built-in way to extract them.
The only way I can imagine is parsing all the code and looking for Function and Sub to collect their names. But this can be cumbersome.
Maybe studying the source code of the Rubberduck AddIn at GitHub can help. I know that such a parsing is implemented there (in C# aswell) as they need it to generate a list of functions/procedures too, so maybe this can help you getting an idea how to implement this.
I have a program which analyses some information in runtime and save the analysis results in certain variables. I have 15 of these variables, of which, 13 are string type, 1 integer and 1 bitmap image. I want to let the user to generate a report based on the analysis data. I have been trying to search the forums for help, but couldn't find a proper solution yet.
First of all, I don't want to save these analysed results in a database (SQL etc). All i want to do is just to display the report to the user based on analysis results and let him save or print it.
This is what I did so far based on numerous hints that I get from forums. I added a report.rdlc file and created a template for the report. I also created a dataset.xsd file and added the analysis parameters to the dataset. All the dataset values are added to the report template.
Now this is where I am stuck. I don't have an idea how to proceed from here and generate a report. Right now what my program does is, upon button click, the analysed parameters will be saved in their respective variables that I specified in the main program. What I want to achieve is to use these results and generate a report as in the template. Sorry that I am not able to post images here due to the user restriction.
Any guidance on how to achieve this is much appreciated.
Thank you!
From what I recall, reports support parameters which can be injected via the presentation control.
With little else to go on, I would look here first.
Hi I am designing a report using Crystal Report in VS 2010 C# to show students details.
I have designed the Crystal Report like below.
and my actual database table data is
but I am getting output is
What will be the problem?
Ashok as per your question information there might not be any error in your coding but might have error in Cristal report or Application setting.
Check your both that applications and try again.
It’s not quite clear what the issue you have at the moment. But based on your comments there are few areas that I think can be gone wrong.
Check you have correct data source set up (Right click on student under Database fields and go to set data source location and check you are connected to correct database and table)
Also go to file and check whether you have save data with report option is selected. If it is unselect that option
Try go to database and do verify database
Reason behind you seeing values like ###### is definitely because of not enough space been allocated
Hope this helps
You see the "######" because the field itself is not big enough to display the data. There are two ways you can solve this:
Click on the field to highlight it. Then move the mouse along the frame until the cursor changes to an arrow that points left and right ( <-->). Click and hold the left mouse button and resize the field (just like you would resize a window).
You can right-click on the field, select Format Field, and under the common tab you can check the "Can Grow" option.
I need an advice for a c# asp.net project.
My client wants to see some reports via the gridview object with master/detail structure.
The main gridview will be full by all master data and each row will have a + icon (or button) on the first cells.
When user clicks this icon, the all details data of that master row should be seen under that master row with collaps action.
I can handle the database proccess but i can not figure out the collapsing part.
How can i put some extra rows under the specific row on the gridview object?
Thanks in advance..
Matt Berseth has one of the most impresive tutorials on this kind'a stuff
it contains til now 28 tutorials only on the GridView plus a lot from other asp.net controls as well using jQuery with them. I do learn plenty with him. I really love his work and I just wanna share this with you, you might actually get some good and professional ideas from his code!
There is a CodeProject article with downloadable source:
GridView inline Master/Detail record display
Thanks but its for updating or inserting.
Instead , i have found that page, it seems more effective.
GridView control to show master-child or master-slave data, written in c#, asp.net, and javascript.
Here is another good CodeProject blog. Explains multilevel master/detail without JavaScript.
http://www.codeproject.com/KB/aspnet/MultiNestMDGridview.aspx
This is the easiest to use control I've ever run across:
http://code.msdn.microsoft.com/CompleteGridView