agustin_m's Q&A profile
Visual Studio Tools for Office How can I format a range as table using C#?
We can format a range as table by click the "Format as Table" button in Ribbon of Excel 2007. I wanna implement the same style in C# code. How to do Questions concerning automation of an Office application are technically off-topic in this forum, which is dedicated to questions concerning the VSTO technology. A list of appropriate newsgroups is provided in the " Please Read First " posting at the top of the forum. The macro recorder is your friend, even in Excel 2007. Recording a macro when using this button reveals the basic syntax. If you require assistance "translating" this into C#, ask in the office.developer.automation newsgroup. ActiveSheet.ListObjects.Add(xlSr ...Show All
Visual C++ Trying something new
Hi all. Im trying something new. Something yesterday gave me an idea that i could use it with more than one source file. So i created 2 source files and 1 header file to do all the including and bridging communication between sources. Here's what i have so far. Source 1 #include "include.h" int main(){ const SIZE = 100; char msg[SIZE]; printf("Enter a file you'd like to read: "); cin.getline(msg,SIZE); if(!msg){ printf("File %s doesnt exist.\n",msg); } else{ printf("Reading file %s",msg); readfile(); } return 0; } Source 2 #include "include.h" void readfile(void){ char buffer[100]={'\0'}; ifstream file("test.txt"); while(file ...Show All
Software Development for Windows Vista GrpahEdit records fine, corresponding code does not
I have got DirectShow running nicely for viewing a standard webcam video stream. The graph is registered so GraphEdit sees it-- here is a summary: capture filter(Logitech web cam) -> Smart Tee -> Capture branch-> MUX -> File writer -> Preview branch-> Video Renderer However, when I capture the stream and save it to an .avi file, the file is unreadable. The strange part is that if I use GraphEdit to remotely see the DirectShow graph and then run the graph via GraphEdit, then the .avi file is fine. The properties page of the good (GraphEdit written) file shows a framerate while the one run directly from code does not (all other parameters such as size, resolution, compression format ...Show All
SQL Server A tool for aggregation design XMLA file viewing/editing ?
Is the best way to specify the most useful aggregations to actually edit the XMLA for measure group and hand pick the aggregations I need In that case has anyone seen a basic tool for viewing the attributes in each aggregation and perh In taht case has aaps even deleting them/editing the XMLA file a little bit The reason I am looking for a tool is to make sense out of 2000 aggregations created by the wizard. It's called AggregationManager and is under Administrator/AggregationManager. I don't think the samples are included in the main SP2 download. I think you have to download them separately. The SQL Server sample are now all available from codeplex. The download page for the SSAS samples is here ...Show All
Visual Studio Team System Running Nightly Build if code has changed
I have a TFSBuild project which I have scheduled to run every night. Thsi si just done using Windows Scheduler to call the TFSBuild command line to run the Project. However I would like it to only run the Build, label etc if any code has been changed and checked in. I was thinking of using the 'tf Diff' command line to give me a brief list based on the label from the last build. But when I specify the Command: tf diff <filespec> /r /format:brief /version:L<label> I get a message saying "There is no pending change for '<filespec>'." If I use a Date for the Version it works. Could someone give me some suggestions as to why I get the '..no Pending changes..' message. Also what would be the bes ...Show All
Visual C# Process Module
Hi, I have an application which lists all the running processes of the machine and i need to get the full path from which the process is running. I am trying to use the following methods : Process.MainModule.Filename Process.MainModule.ModuleName The above code doesn't work it throws an exception "Unable to enumerate the process modules" any thoughts Regards Alan thx for the replies. I am running .Net v2.0 on WinXp prof serv pack 2 and i am also on the admin account i also tried to catch exceptions but still a messagebox popped up with the same message. If anyone finds a solution please reply in my thread. thx very much :) Rega ...Show All
Smart Device Development is CameraCaptureDialog only for wm5?
how about mobile 2003 I want to make my application available for capture picture from the camera Yes, WM 5.0 only. On pre WM 5.0 devices you'd need to use camera SDK from particular camera manufacturer. If it’s not available then it is not possible to use that camera. Please contact camera manufacturer for info. ...Show All
Smart Device Development ActiveX Controls
I have VC++ 2005 .NET Pro version. I know how to create ActiveX controls, but how do I use them. When I create a new dialog application, right click the dialog box and select Insert ActiveX Control, a list pops up that shows the ActiveX controls I can select. The control I just created does not appear in that list. When doing the same thing with eVC++ 3.0 compiler I had to also make a desktop control using VC++ 6.0 compiler, then modify the project file so that it would use the same source code. That worked well. Do I have to do something similar with 2005 compiler If yes, can somone please tell me how or post a link to relevant article. Thanks Hi, Sadly nothing has changed between eVC and VS 2005 with ...Show All
Visual C# Please suggest me the path
Hi.. I am a fairly experienced developer. I am have always urged to learn how to design 3/n-tier windows and web applications using .NET and C#. I would be grateful, if any one of you gurus could suggest me some learning material/books etc so that I can become aware. Ofcourse i know that practise will then make me perfect. However i need a starting point. Gurus!! SOS Regards, Lalit Thanks a lot Figo..That was Certainly helpful. :) For all those who need a book, a book by Rocky Lhotka - Expert C# 2005 Business Objects (Apress) is a good reference book. Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Entities: Think, Update, Create, Collide, Render -- Stumped!
Hey all, Thanks to all of your suggestions from previous topics, I'm finally 'working on the game' sort of speak. My final (or near final) hurdle is in the controlling and creation of entities. Game entities need to be able to think (what's around me Should I get out of it's way ), update (move based on your velocity), collide (whoops I hit something), create other entities (I'm shootin' mah gun!) and render themselves. Every problem is easy to handle individually: Think: Can be performed inside the Update method. Update: Entity.Update() Collide: Run through all the entities, do some culling of what's obviously too far away, and check the rest. Spawn: EntityFactory.Create(typeof(Bullet)) Render: Entity.Render() Combined, however, it begin ...Show All
Windows Forms Button, tabControl: Look and feel of Windows XP
I have built a user control that contains the Windows tabControl and button controls. When I try running this in a blank, experimental form everything looks great. In the designer, and in the test form, the tabs have a light gradient, and when there's a mouseover, an orange border appears around the buttons (System/XP style, I think). This is what I want. However, when I add my control to my project's main form, the run-time appearance of the controls is different. The buttons and tabControl look flat, grey, and do not change on mouseover (like old-style Windows). What property in the designer/what do I have to do to get to force the Windows XP look and feel on the controls in my main form I imagine the controls are inheriting some ki ...Show All
Visual Studio filter the report
hi in this project: http://209.227.215.245/prova repot.zip please copy and paste on your browser to download sample project copy on c:/ and unzip here i have a repot and one button who i filter a list, but when i push the button, the report don't filter! where is the error thanks ...Show All
Visual C++ Help please urgent
This is a currency class i am so lost on how to do the empty constructors and methods please help!! [code] Currency::Currency():_dollars(0),_cents(0){} Currency::Currency( const Currency& curr) { _dollars = curr._dollars; _cents = curr._cents; } Currency::Currency( int dollars, int cents):_dollars(dollars),_cents(cents){} Currency::Currency( float curr) { } Currency::Currency( const string& curr) { } int Currency::getDollars() const { return _dollars; } int Currency::getCents() const { return _cents; } void Currency::setDollars( int dollars) { this ->_dollars = dollars; } void C ...Show All
Smart Device Development Building a PDA application, which to choose visual: c# or c++
Hello everyone, I am interested in building a series of applications for a Windows Mobile 2003 SE device. What would be the best language to do it under Visual C++ or C# The application I plan to write essentially sends a command and receives data from a serial device. I've already written this program in the LabVIEW programming language, but it is too slow. (i.e. to complete one loop in the code takes ~2-3 minutes). Any advice would be greatly appreciated. -George Thanks for your speedy reply, How do I find out if it support .Net 2.0 From the following two languages , Visual C# or Visual C++.net, which has a superior plotting tool. (i.e. graphing library) ...Show All
.NET Development Windows Vista x64 Conexant Audio Driver Problem
I Have a gateway Laptop, Model number MX6437. AMD Turion64 processor, ATI Radeon Xpress 200m Graphics, 1 Gig of Ram (upgraded from 512). I Downloaded The Windows Vista Beta 2 x64 bit Version. It installed ok, but I have Found I have no Sound driver. I have Tried Windows Update, no luck. I Have Also Rebooted my pc and pressed f8 and turned off the Assighn digital signiture. Rebooted, Still no sound. I have tried Drivers that people on here have recomended but still no luck. Even the ati south bridge driver. every time i do an install on thier recommended driver they say worked for them, i get an error message saying: error installing software. The specified file cannont be found. I still have a red x in the sound icon. I have a conexant aud ...Show All
