dataMonkey's Q&A profile
SQL Server A more consistant Web Report Viewer?
Is there another way of displaying reports online that will show the data exactly as it wil be printed A number of things have been causing me problems, such as the fact that the pagination controls do not show the same number of pages that actualy get printed. And some fields in the the report viewer do not line up with their column headers, but on the print outs they do. We used to use Crystal reports, and would like the report viewer to act in a similar manor to their ActiveX report viewer. Any help is greatly apprechiated. Many thanks Matt Hi Nathan, Thanks for your comments, but thats not exactly what i was after. I just had a thought though, there obvously is an activex control ...Show All
.NET Development Creating class to create bitmap of forms graphics object
I often need to capture a forms drawing surface and write it to a file. Typically I'd create the bitmap then save that and draw it to the forms graphic object but I'd like to do this more generally. Here is some code to create a class to do that but I cannot get to work. The gaphics from g does not transfer to ng and therefore the saved file is blank. class ImageCreator { public void CreateStill(System.IntPtr WinHandle, int w, int h) { Graphics g = Graphics.FromHwnd(WinHandle); Bitmap bmp = new Bitmap(w, h); Graphics ng = Graphics.FromImage(bmp); ng = g; bmp.Save(Application.StartupPath + "\\img.bmp"); } } I'd call it like this: ImageCreator ic = new ImageCreator(); ic.CreateStill(this.handle, this.ClientSize.Width, this.ClientSi ...Show All
Visual Studio 2008 (Pre-release) mismatched dll versions (june ctp)
Hi, Since installing the most recent ctp, I get an exception on my old projects. Message="Mismatched versions of PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that these DLLs come from the same source." I can create new applications without a problem, so it's definitly something in my old project. Obviously, I've checked all references in the project, they are set to not copy and point to: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 The version of all dll's (including presentationCore ): 3.0.6507.0 (vbl_wcp_avalon.060607-1054) Public key tokens of all the dll's is: PublicKeyToken =" 31bf3856ad364e35 " I've looked at the gac, and it seems to be okay. I'v ...Show All
Microsoft ISV Community Center Forums Using the API of Visio to open a Custom Method in Visio
Hello everyone, I am trying to call one of my own functions in the Visio-VBA file from another visual basic program. Do you know the name of a fitting API-Function Thanks ...Show All
SQL Server "The package contains two objects with the duplicate name of "xxxx" and "xxxx"
Hi all, I am creating a Data Flow custom component in SSIS, and my input/output columns are dynamically created depending on the value of a custom property of the component. Then, as soon as I modify this custom property, I make some job in SetComponentProperty(), that I have overrided in my PipelineComponent, to create my input and ouput columns. After validation, I have the following error message: Error 3 Validation error. Data Flow Task: DTS.Pipeline: The package contains two objects with the duplicate name of "output column "AMOUNT" (4714)" and "input column "AMOUNT" (4711)". Package.dtsx 0 0 I create an input column named "AMOUNT" with an ID 4711 and an output column ...Show All
Visual Studio Express Editions WebBrowser non event
I have a problem with WebBrowser when I navigate to a URL where the document doesn't complete under certain circumstances. First, the code... Dim wb As New WebBrowser wb.Navigate(URL) Do Until wb.ReadyState = WebBrowserReadyState.Complete MsgBox(wb.ReadyState.ToString) Loop MsgBox( "Finished" ) It never exits the Do Until loop unless I have the msgbox(wb.readystate.tostring) line in there. This seems to allow the application to do events. I get the same problem using the document completed event (it never fires unless I have the MsgBox line in the loop). I am using this code within a class and I can get it to work if I put it within a form class because I can put My.Application.Doevents in the ...Show All
.NET Development ActiveX control 2005 in web page
I tried to develop an ActiveX control using VisualStudio.Net 2005 and C#. First of all I created a new "Windows Control Library" project; I named it ControlTest. The control is very simple: just a button and a textBox. If you click the button, the text of textBox is set to "Text from inside". There is a member function, too: public void setText(String txt) , which should allow to set the textBox Text from outside. Well, this control works if used in a .NET application. The host application can set the textBox text, both using the internal button, or calling the public method setText. The following is the source code: --------------------------------------------------------- using System; using Syst ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screenshot in windowed mode occluded by other windows!
My 3D program works in windowed mode. And my screenshot capture code using GetFrontBufferData() works fine until one day I found that another on-top window was in the captured image! It seems working in the same way as the PrintScreen key. The SDK document said GetFrontBufferData() is the only way to get fullscreen antialiased image. Then how can I get only the content of my 3D window Yes, that's an unfortunate fact. If you need to take a multisampled screen shot in Windowed mode, then you really have to guarentee that your window is top-most visible. Because getting front buffer data will just return pixel values that are currently displayed on screen in that region, whether rendered by your app or not ...Show All
Visual C++ Asked for VC 7.1 libraries when compiling a project in VC 8
Hi folks: I encountered a problem when I was compiling a VC++ 8 project convered from .NET 2003 in Visual Studio 2005. When the process came down to link stage, the VS 2005 IDE asked for some version 7 VS libraries such as "mfc71.lib", "mfcs71.lib", "libc.lib", etc, which are not included in VS 2005. Could anybody provide any hints for cracking this problem. Thanks a lot in advance. Jason Did you mean that the problem can't resolved by simplely setting some compilation/link options in the IDE without recompiling the old library using VS 2005 Thanks, Jason ...Show All
Visual Studio Can't install, get error
Using XP64 ver. 1069 Get an error that background intelligent transfer system is not enabled. I try the troubleshoot, but all settings match and diagnostic tools they say to use won't run, because errors say "for windows xp only" or "for other architecture" It is supposed to run on this version I according to the list I think. Thanks. Dr. Bev: I am amazed as others how this simple fix.....cut and paste worked. I want to Thank You for taking the time to post this. As I'm writing this my 37 updates are being downloaded. I guess we should thank the techs at Microsoft too! Thanks Again............Mar G ...Show All
Visual C# how do we translate my connection string from VB to Csharp
Hi, Just place an @ sign before the string. Or use \\ to specify a single slash. This is because C# strings could contain format strings example is \n for newline. Your connection string should look like this: string myConn = @"workstation id=myPC;packet size=4096;integrated security=SSPI;data source=""myPC\LOCALHOST"";persist security info=False;initial catalog=myDataBase" cheers, Paul June A. Domag in my VB: myConn="workstation id=myPC;packet size=4096;integrated security=SSPI;data source=""myPC\LOCALHOST"";persist security info=False;initial catalog=myDataBase" Csharp doesn t acept : ""myPC\LOCALHOST"" withing another string . Ho ...Show All
Windows Forms String Collection Editor error: "Constructor on type 'System.String' not found"
VS 2k5, 2.0.50727. Using a PropertyGrid to try and edit an object that has a collection of strings. I'm trying to get this to work, but I'm having absolutely no luck. There's tons of people who are having the same problem, and most questions are answered with the same solution; however this solution does not work for me. I've created a sample program that replicates the error. To get this error, create a Windows Form app in C#. Add the following class to the project : public sealed class StringCollectionFailure { private StringCollection fail = new StringCollection (); private string name = string . Empty; public string Name { get { return name; } set { name = value ; } } public St ...Show All
Visual Basic Tips & Tricks for Translation Required
I have a ComboBox2.Text that it has Two Items of name 1 and 2 and i have a file of this type: Translation For My Tool [INFO] Language: Italiano Author: flash.tato [1] FileType: .mox Object1: Maxtor [2] FileType: .sek Object1: N/A I want that if ComboBox1.Text is 1 the Label1.Text is .mox and if the ComboBox2.Text is 2 the Label2.Text is .sek There is a good way Maybe that it is using ReadLine but how do i move the pointer in a line From 1st Line to 4st line how do i move You'll have to parse the text file somehow and create some kind of collection of ID values and file types. There are a number of ways to accomplish this. Here is one example: Dim FileTypeList As New Dictionary ...Show All
Smart Device Development Serialization/deserialization slow on CF2.0
I am reading a message from a message queue and adding it to a list. I find the following code to be extremely slow. I am running Windows CE 5.0 with CF 2.0 using VS2005 Message messages = _sendQueue.Peek(); List < baseClass > cmds = new List < baseClass >(1); baseClass bc = messages.Body as baseClass ; *************** This statement takes a lot of time to execute Console .WriteLine( "3" ); cmds.Add(bc); Please help Yes, it can be slow as it uses reflections. As far as I remember it’s especially slow if you have arrays or collection in your class. You can use custom serialization to speed it up, either by implementing IXmlSerializ ...Show All
SQL Server Deploy Reports to specific folders
Hi, I am a new user for RS so this might be a very dump question for some of the advanced users here. I am using SQL 2005 RS and was wondering how I can deploy reports to specific folders that I created on the Reports page. I do know that I can go to Properties to move the reports to different folders. But the problem I have is when I deploy the reports from VS 2005 ( I created the reports using VS 2005) they were deployed back to the old/root folder. How can I change the 'deploy-to' destination folder for the reports in VS 2005 Many Thanks, Casey Hi caseycasper, You could go to the “Project Properties Page” (right click the project) Set the “ TargetReportFolder ” property, to the folder you would like to deploy ...Show All
