denverd's Q&A profile
Windows Forms Printing winform in app ?
I have the following code; see below! The form image works, the printing works. What does not work is making the image Landscape. It just seems to ignore it. How can I get it to go landscape Thanks Deasun Try CaptureScreen() With prtPrvDialog .Document = prtForm ...Show All
SQL Server SSIS vs DTS - what to compare?
Hi. I'm working on 'bigger' SSIS vs DTS comparison, but actually don't know where to start. Can someone experienced give me some clues/resources about that I was able to find only some parts, short texts, that SSIS is about 7 times faster, etc. But I need to make some tests and analisis as well. Any help would be appreciated. Thanks in advance, Michal Phew, where to start You could write a 500-page opus on that subject matter. What specifically are you looking to compare Functionality, Performance, or something else Perhaps this might help in regards to functionality : http://blogs.conchango. ...Show All
Visual Studio 2008 (Pre-release) saving inkcanvas as image
Hello I am trying to create an image file from the inkcanvas. I have got the following code from some blog but the error comes that BitmapVisualManager is inaccessible due to its protection level. I dont know how the same code works in others people. RenderTargetBitmap rtb = new RenderTargetBitmap((int)inkCanvas1.Width, (int)inkCanvas1.Height, 96d, 96d,PixelFormats.Default); BitmapVisualManager bvm = new BitmapVisualManager(rtb); // draw the ink strokes onto the bitmap DrawingVisual dvInk = new DrawingVisual(); DrawingContext dcInk = dvInk.RenderOpen(); dcInk.DrawRectangle(inkCanvas1.Background, null, ne ...Show All
Visual C# An unhandled exception of type 'System.StackOverflowException', how to handle this problem?
class CreateCage (simple code, not complete) // this.cButton.Location = new System.Drawing.Point(88, 168); this.cButton.Name = "cButton"; this.cButton.Size = new System.Drawing.Size(88, 23); this.cButton.TabIndex = 3; this.cButton.Text = "Create Cage"; cButton.Click += new System.EventHandler(cButton_click); fmhandler = new Form1(); private void cButton_click(Object sender, System.EventArgs e) { string temp = fmhandler.getCstring(); MessageBox.Show(temp); fmhandler.infotextBox.Text= temp; this.Hide(); } public int getNumber() { try { number = Convert.ToInt32(inputtextBox.Text); return ...Show All
SQL Server Returning results to MSMQ from SSIS Package
I want my package to return the results to the MSMQ queue. from where it will be picked by another application. How do we do that. Do u suggest using service broker for that. in that case how to connect that application to ssis service broker Tim Daniels wrote: Well this is confusing me also. Suppose I have a simple flat file, I want to process the file and send each row as a separate message to an MSMQ queue for consumption elsewhere. How do I do that Feels like it should be a MSMQ destination in the dataflow, not an MSMQ task in the control flow; something here I am not understanding. Thanks ...Show All
Visual Studio Express Editions VC++ Express Win32 Application without Platform SDK
Good afternoon... When I select New Project in VC++ Express I given a template choice of Win32 Console Application. My question is, what is a Win32 Console application without the Platform SDK installed Is this just a Standard C/C++ library application If not, what is it Thanks Yes is it just a standard C/C++ library application. No win API programming unless you download the PSDK separatly. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Missing references and the GAC
When I run fxcop on a .dll that contains some NUnit tests and links against nunit.framework.dll, which is in the GAC, I get a missing reference to nunit.framework.dll. Running fxcopcmd with /searchgac doesn't make any difference. I'm using version 1.35.60331.0. Also, is there a way to ignore missing references with fxcopcmd like you can in the GUI without using a project file Hi Brad, when you use the /searchgac switch, FxCop should call out to the fusion API to retrieve the assembly from the GAC. Can you use the steps on http://msdn2.microsoft.com/en-us/library/e74a18c4.aspx to use the fuslogvw to see i ...Show All
Windows Forms Releasin Resources
I have a control on which I have a picture box and I draw it from a Bitmap (a TIFF file). I then determine how many pages (frames) the TIFF file has and create each frame as a file in a temp directory. 0.tif, 1.tif, 2.tif, etc. If I change my query parameters, I get a new TIFF file. At this point I want to delete the ...Show All
SQL Server Missing data source"....
I wanted to demonstrate how SSIS can easily read an Excel file into a database. I started up the wizard (dtswizard) looked and looked by couldn't find "Excel" in the list of datasources. Next I started up the SSIS IDE, found an Excel Destination, and created a flow that errored out on the copy to Excel step. >>> SSIS package "Package.dtsx" starting. Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning. Error: 0xC0202009 at Package, Connection manager "Excel Connection Manager": An OLE DB error has occurred. Error code: 0x80040154. An OLE DB record is available. S ...Show All
.NET Development Engine R&D
hi, i am chong, i am a C# developer. Currently, i am doing a research and develop a project. This project architecture is i need to develop a distribute engine to collect the data from the server and transfer the data to a centralized server to process. The question here is the communication between the engine and the server is either upstream or downstream (Note: My upstream meaning is when the engine getting any data, it straight foward to the centralized server. Meanwhile, the downstream meaning that the centralized server will try to request the data from the engine.) For the message transaction between the engine and server, what factor ...Show All
Visual Basic Multi-threaded file processor
I would like to build a tool that reads a text file (might have upto 1,000,000 lines) and does some process with each line and publishes to the message queue [one line at a time]. Between each message being published, there should a sleep time between each threads, which will be configured through the user interface. Also, I need to be able to configure the thread count through the user interface. Any information or sample would be of a great help. Please suggest... it is very urgent. Thanks in advance Why don't you create a thread, just as you have said What have you tried, and what part doesn't work Th ...Show All
Visual Studio Team System Reporting Custom Test Results
If I have a custom test type (which I do), and a custom testresult class defined for that custom test type (which I do), how do I make any new properties that I have added to my testresult visible in Reports In other words, if I add a property to my testresult and want to be able to filter report results based on the value stored in that property in a report once the results have been published, how do I do that For example: I store value "foo" in property BAR of my testresult class and I want to create a report that only shows me results where BAR=="foo". Rob I'm not 100% sure eith ...Show All
Visual Studio Remote debugging VS 2005 / SQL 2005
Hi there! We are developing T-SQL Procs on SQL Server 2005 and want to debug the procs on the client. When i "step into stored procedure" i get the error message: Unable to start T-SQL debugging. Could not attach to SQL Server Process on <MyServer>. Some remarks: Remote Debugging on the server is running, i've tried as service, as application, native without authentifaication and so on. Does'nt effect anything. I've tried some other permissions like admingroup and sysadmin - does'nt effect. Any idea When i manuelly "Attach to Process..." in the Debug-Menue, i can see the processes from my server (Transport: Remote (n ...Show All
.NET Development Converting to Unicode
I have the following code in vb6: StrConv(sServer, vbUnicode) Can anybody tell me how to do this in c# Hello Gbez, While I haven't tried running your code, I would recommend running your application with CLRSpy - specifically the Marshalling Customer Debug Probe. It may be that there is a marshalling issue with the PInvoke calls. Adam Nathan talks about CLR Spy on his CLR Interop Blog on MSDN: http://blogs.msdn.com/adam_nathan/archive/2004/01/13/58308.aspx Hope that helps, Stephen http://blogs.msdn.com/stfisher ...Show All
Smart Device Development Build with an older .net CF
Hi, iam new here and in the programming area. I have written a little app for a WM05 device. When i do i build and copy the files to my ppc it warns me that i havent installed the newes .net CF on it. Nevertheless i have a QTEK9100 - a very new device and want to use the built in Functions. My app is not as complicated as i need the newest CF. Is it possible to do a build with an older CF Any hints for me Ilya Tumanov wrote: You can only switch from V1 to V2 but not backwards. You could create new V1 project, add existing files to it and eliminate or replace all V2 only features you've us ...Show All
