John~'s Q&A profile
SQL Server report viewer newbie
hi, i'm a newbie in using report viewer and having a tough time now building a web app in c# and asp.net.. hope someone can help me on this. i'm using VS2005 and RS2005. i've tried looking at the sample RssNewsReader but i have problem running it. error message : Could not find type 'RssNewsReader.ChannelInfo'. i think this is because i don't have system.ComponentModel in the reference and i don't have this dll file in my system as well, therefore i could not add it in. i tried looking at sample in odetocode website but the sample wasn't built using VS2005, so i encounter problems changing the syntax. can someone direct me ...Show All
Visual Studio Team System Can the test cases in the test project be merged into one document?
Hi, I have a test project with test cases in VSTS. Is there any way or work around to put them together and have one document to contain all of the test cases I want Thanks, Leon 1.You can add a Query to selcet all test cases what you want put them into one doncument from your Team Project. 2.Then select all and click "View -> Open Selection in Microsoft Excel". After step 2 you will get an excel file and you can save it. ...Show All
SQL Server How to invoke C# code from SSIS? Can we script in C# for Script Task?
How to invoke C# code from SSIS Can we script in C# for Script Task thanks With the introduction of VSTA which supports C# for scripting, will SSIS support C# i.e. will it upgrade its script engine to VSTA ...Show All
Visual C++ C/C++ Graphics Library in console applications
Hello, I would like to draw a simple math function using visual C++ ver 6.0 (Professional edition ) and without any GDI windows functions or COM Interfaces but just in console mode (or DOS operating system..I know its old os! ), could someone help me to create a simple graphics function or classes ..or C library if it exist. Thank you Well, you can, old games ran in DOS mode. But not in a console window, I presume you need to go into some sort of full screen graphics mode to do it. I've never seen a console window with any sort of graphics in it. You could certainly write a console app that draws a bitm ...Show All
Microsoft ISV Community Center Forums VBA for Powerpoint
Hi, I have been asked to modify a powerpoint presentation so that from a series of jpg files, one appears on the screen and then after a specific time period disappears and is replaced by another; this being a continuous loop on one slide only - like a photo tour. I have the following code, but need to get it up and running. Any suggestions: Sub ImportABunch() Dim strTemp As String Dim strFileSpec As String Dim oSld As Slide Dim oPic As Shape strFileSpec = C:\PFS Pictures\beach party *.PNG 'Ex. on a PC: C:\My Pictures\Flowers\*.PNG strTemp = Dir(strFileSpec) Do While strTemp <> Set oSld = ActivePresentation.Slides. Add ppLayout ...Show All
Visual Studio 2008 (Pre-release) Create Events with C#
Is there a way to create control events with C# (other than manipulating the code manually) I saw there is a way in VB, but in C#... Thanks, Neno There is no way to create control events from the designer in this CTP. You will have to switch to Code view and add the event handlers manually. Thankfully, the IntelliSense functionality in Visual Studio 2005 makes that really easy. ...Show All
.NET Development Raw XML web Service
Hi I am relatively new to dotNET so excuse me if the solution to this is obvious. Trying to create a web service that deals purely with raw XML. I can get the web service to return an xml loaded from the c: drive but cannot make it accept an XML document as the input parameter. Web Service: Imports System.Web.Services Imports System.Xml Imports System.Xml.Serialization 'This One Works (No Consumer Requiered) '<WebMethod()> Public Function ReciveAndSendXML() As System.Xml.XmlDocument 'Send XML 'Dim XMLReply As New XmlDocument() 'XMLReply.Load(Server.MapPath("./") & "XMLDoc.xml") 'ReciveAndSe ...Show All
Visual Studio Team System Custom Check-In Policy: Time That Task
I just created an interesting check-in policy and wanted to share it with you all. I'm interested in your feedback. Custom VSTS check-in policy that gathers hours worked on a task during each check-in. This policy requires check-in to be associated with only one task that is in an "Active" status. It also gathers the number of hours worked on the associated task incrementing the completed hours and decrementing the remaining hours. If the number of hours worked on code in check-in is greater than remaining work hours on the associated task, user will be asked to re-estimate the number or hours remaining for the task. http://www.gotdotn ...Show All
Visual Studio Express Editions Get Activation code
Hi there. I got an issue. I installed VWD in one computer, but I didn't activate it. Now the machine has no internet acces. How can I get an Activation code Thx. Alex, Please contact me at jameslau@microsoft.com and I can help you resolve this problem. Thanks! ...Show All
Software Development for Windows Vista Beta 2 question: Why did local services change?
I have a question as to why the ExternalDataExchangeService class was introduced in Beta 2. What is its function that is a benefit over, or difference from, the way we added local services in Beta 1.2 For example, if I had a local service named Foo, which implements the IFoo interface (the IFoo interface is marked with the DataExchangeService attribute in 1.2) and I wanted to add it to the runtime I just did: Foo myFoo = new Foo(); workflowRuntime.AddService(myFoo); Now, in Beta 2 I see that we mark the local service interface with ExternalDataExchange attribute. Then as before, with Foo implementing the IFoo interface: ExternalD ...Show All
Visual Studio 2008 (Pre-release) WinFX not working on XP Pro x64
I have been unable to get WinFX running on Windows x64. I keep getting a System.NullReferenceException: Object reference not set to an instance of an object. Has anyone got it running If so I'll investigate further. Edit: I should mention that it's only had problems with the November CTP and later, ie. those using VS 2005 RTM. September and earlier worked without problems. I ran all the cleanup tools and VS 2005 works fine for regular projects. Hi Arik, I should probably have updated this myself. It's fine now. I believe it was a case of the previous CTP (September I believe) not being ...Show All
.NET Development How to read Bitmap from a file.
Now,i have a binary file,that have write a string,a Int32 value,a bitmap ordinal. I use BinaryReader that could read String,Int32 value correctly. FileStream fileStream = new FileStream(fileName,FileMode.Open); // BinaryReader br = new BinaryReader(fileStream); String s= br.ReadString(); Int32 i=br.ReadInt32(); //How to read a bitmap to save to a bitmap ... ... ... br.Close(); // fileStream.Flush(); fileStream.Close(); Thanks. you don't need the FileStream -> BinaryReader -> MemStream steps, as FileStream is just as much Stream as MemStream is using (FileStream fs = new FileStream(filename, FileMode.Open)) using (Bitmap ...Show All
Windows Forms Tab Key 2.0?
Ok you could get away with doing this in 1.1 but now in 2.0 its a no go Any help would be great Thanks Joe 'Size Group 5 Leave with Tab Click *** Private Sub cboBU_SizeGroup5_Leave( ByVal sender As Object , ByVal e As System.EventArgs) Handles cboBU_SizeGroup5.Leave Dim k As Keys If k.Tab Then If cboBU_SizeGroup5.SelectedValue > 0 Then cboBU_SizeGroup5.SelectedValue = cboBU_SizeGroup4.SelectedValue End If End If End Sub That's pretty much the way you have to handle it. The only missing item here, I think, is no consideration for Shift+Tab. You co ...Show All
.NET Development How does Process.Start() redirection work?
Hi All, I've been working on creating a program that automates my program building and testing. I am doing the code in C#, but there is a problem with the StreamReader.ReadLine() function where if it tries to read from a Process output pipe before the Process finishes writing to the pipe, it causes the thread reading from the pipe to block and the process then blocks too. However, if the process is short lived, I have a likelier chance of getting all the output. So now, I'm testing the Win32 API equivelants and a portion that I'm having issues on is collecting the stdout and stderr ...Show All
Visual Studio Tools for Office VSTO 2003 and VSTO 2005 on the same machine?
Can VSTO 2003 and VSTO 2005 coexist I can't debug any existing VSTO 2003 projects, and can't seem to create any new ones. This is a real problem since I still have to support 2003 solutions. Does anyone know what you have to do for VSTO 2003 to work properly with VSTO 2005 installed John, To my knowledge, you can. However, there are implications about how your customizations will run and which version of the CLR gets picked up by Office and so forth. Please consult this MSDN documentation with a more full explanation and detail: http://msdn2.microsoft.com/en-us/library/y89ktbw6(VS.80).aspx Also, a similar question was ...Show All
