susqu's Q&A profile
SQL Server Dynamically Generating SMDL (Report Model Definitions) With C#
My problem is this: How do I dynamically generate a Report Model Definition with c# Is there some sort of method I could call from the ReportingService2005 web service Or some sort of APIs I could use If I didn't have a dynamic database structure, I would just create a Report Model Definition with BIS and then deploy the same model to each customer. However, our product creates additional tables in the database, depending on ...Show All
.NET Development Possible to pass System.Type and then cast an Object?
Im trying to do something like this: public class isthispossible() { Inventory someClass = new Inventory; Type someClassType = someClass.GetType(); someMethod(someClassType); } public someMethod(Type ClassType) { Object someObject = new Object(); someObject = (ClassType)someObject; } I want to pass a System.Type and then cast an object to that type, using that System.Type I passed. Is t ...Show All
Smart Device Development Emulator communications error
Emulator used to work, but now I no longer can communicate to it from VS2005. Reinstalling VS2005 didn't help. Using DMA transport When I try to connect to the emulated device I get the following error message: To 'Windows Mobile 5.0 Pocket PC Emulator' Connection failed. a specified communication resource (port) is already in use by another application. Can you try deleting the local datast ...Show All
Visual Basic running cmd.exe using System.Diagnostics.Process
Hi guys, I am running cmd.exe to start a executable from a web application.Howvever, i need to input 2 more parameters for the account and pwd as shown below. CMD.EXE c:\Documents and setting\desktop>perl scriptest.pl test.txt account(domain/user): xxx password:xxxx 'User enter perl scriptest.pl test.txt, then cmd.exe will prompt for account and password for user to enter. How do i let the web application enter the account and pass ...Show All
Windows Live Developer Forums Need some direction
Does anyone know if it is possible to read the text stream on incomming alerts in messenger with the sdk If so would you be kind enough to point me in the general direction I need to look. ie what api methods should I be looking at Thanks, Jace ...Show All
Windows Forms ComboBox - SelectedIndex Bug when List is in DropDown state
Hi all, I have noticed a strange bug with the System ComboBox in .NET 1.1. Whenever the ComboBox is in DropDown state, it does not appear to update the SelectedIndex. Here are the steps to reproduce: 1. Add a ComboBox to a form. 2. Add a Button to the form. 3. In the button's click event, show a message box with the ComboBox.SelectedIndex. 4. Make sure the ComboBox.DropDownStyle is set to DropDown. 5. Add items to the ComboBox (doesn't matt ...Show All
Visual C++ Problem migrating from VS .Net to VS 2005, release build only
We have reciently moved from VS .Net to 2005 and seem to have hit a snag with one of our programs. We have 3 programs that all ran perfectly (well, usually) under both debug and release builds using .net, using the default build options, or at least very very close. When we moved to 2005, after fixing all of the typical migration errors/warnings and getting a clean build with all 3 programs under debug and release we found that one of the progra ...Show All
Architecture Lazy linking pattern
Lazy loading is a familiar pattern for hydrating business objects but has the drawback of being expensive when many objects need to retrieved (through many SQL queries). In a situation where there are perhaps 20 classes of object each with only 5 to 100 instances of each class, it may make sense to load each of the instances of each of the classes in one go. However linking these classes might be best done as required (hence 'lazy l ...Show All
Microsoft ISV Community Center Forums Need help!Cangrow does not works properly.Pictures in Crystal Reports and VB dotnet
Dear All, I am new to dot not. I'm using vbdot net 2003 with crystal reports that bundled with vs2003 for creating catalogues for our company. We have furniture pictures in access db. In design time I have added picture field to the crystal reports and ticked the cangrow property so the picture can fit into its true aspect ratio. but some pictures grow into full page of the report. unticking 'cangrow' property also makes trouble as the pict ...Show All
Visual Studio Express Editions Public/Private Sub Issue
I am sure this question has alot to do with my inexperience with VB...so its probably something simple. I have a form with some text boxes on it. I have them set to be ReadOnly by default. I want to make it so they can be enabled by opening a dialog box and typing a password. So I created a public sub( ) that basically just enables the form fields when the correct password is typed. The problem is that the statement that makes ReadOnly ...Show All
Visual C++ Can STL vector cross DLL boundary?
Can I have the following method in a DLL and call it from a Client, like this // DLL file void DllFunction (std::vector<int> &B) { B.push_back(1); } ---------------------- // Client file void SomeFunction () { std::vector<int> A; DllFunction(A); } When I try to do this I get a runtime error in _CrtIsValidHeapPointer (dbgheap.c) when SomeFunction returns. I figured the problem is that the DLL allocates the ...Show All
Windows Forms DataGridView: Location of a HeaderCell
I've seen the posts about getting the rectangle for any particular cell using DataGridView.GetCellDisplayRectangle(). For a HeaderCell, I can get the size, but not the location (without computing it based on column widths, which is painful as they resize in any order.) I can compute the location based on the rectangle for the cell in the first row, but not if there isn't one. I want to add a row of blank cells just below the header to allow the ...Show All
Visual Studio Team System Code Coverage
Does anyone know how to enable Code Coverage There used to be an options button on Test Manager to do it, but this button is no longer there. Please help if you can. :-) My understanding is that blue means that line was partially covered (So, possibly in an assert, only the condition was executed and not the assert itself. I may, of course, be wrong. ...Show All
Windows Forms How to add Controls to ListView Control??/
Hi Im trying to develop a calendar control that is similar to outlook. Initially I was planning to use a listview and add the controls on the listview whenever an appointment is created. But the control is exactly not added to the listview but to the form. When I change the size of the form then the controls obviously are out of place. I was wondering is there a way to add a control to ListView. Or is there any other control than listview that f ...Show All
Visual FoxPro Median calculation
Hello, have question about median calculation. I have table like: Name m1 m2 m3 m4 m5 a 1 3 5 2 8 b 3 1 9 7 5 c 4 8 6 3 2 I need to get data in same or another table like: Name median a 3 b 5 c 4 Now I use such program for calculation USE DB!table COUNT TO ...Show All
