Karg Weng's Q&A profile
Windows Forms System.IO.FileNotFoundException In Windows Application
Hello! I have developed a windows Application using VS2003 (VB.NET) to enable my client to export Crystal Reports 8.0 to PDF,HTML and Excel formats. Since the Excel export that comes with VS.NET is not very user friendly, I used Interop.CRAXDRT.dll reference to export the reports to Excel. The application workes fine on my workstation, but when the client installed it, he is getting *** System.IO.FileNotFoundException: File or assembly name Interop.CRAXDRT, or one of its dependencies, was not found**** error. I have tried everything I can think of to resolve this in vain. The interop.craxdrt.dll is in the application bin folder. I made the client copy the file to his system32 folder. Gave the application folder full control permissio ...Show All
SQL Server Reporting Services SP2 CTP "Select All" back in preview but not on web
Hi I've installed SQL Server Express 2005 SP2 CTP specifically because I require the "Select All" checkbox to reappear in multi-value parameters. This was successful in Business Intelligence Studio and when i preview the report the MV params have Select All options. However, when I deploy to the web the MV params do not have Select All options. Why would this be Regards Adam Whitehead Thanks Damn wish I had known that one was available on the web! I have already updated to SP2 CTP and am unsure if I can roll it back and then apply that hotfix to SP1. Regards Adam Whitehead ...Show All
SQL Server Why is database so large?
Hello! I have a database with one table inside. The table has six columns with the following datatypes: col1 -->smallint (2byte) col2 -->int (4byte) col3 -->smallint (2byte) col4 -->smallint (2byte) col5 -->smallint (2byte) col6 -->int (4byte) I have insert 1.359.320 rows with data and the size of the sdf file is 40.116.224 byte. According to my calculation: 1.359.320 * 2byte + 1.359.320 * 4byte + 1.359.320 * 2byte + 1.359.320 * 2byte +1.359.320 * 2byte + 1.359.320 * 4byte = 21.749.120 byte I hope somebody can explain me, why the database is so large. Thank you Sascha You can try to compact the database and check if the total size comes down. It should remove the existing free pages. ...Show All
SQL Server Error Handling-- no connection
I have a package that connects to remote AS400. I am wondering what is the best way to handle situation if my package could not connect to source. -kushpaw kushpaw wrote: I have a package that connects to remote AS400. I am wondering what is the best way to handle situation if my package could not connect to source. -kushpaw There is no best way but here's a suggestion: Verify a data source before using it ( http://blogs.conchango.com/jamiethomson/archive/2005/10/10/2253.aspx ) -Jamie ...Show All
.NET Development Which Container to use?
I am wondering if any body would have an Idea for which container I should use, and maybe some tips on how to impliment it. I am using reflections to get hash codes from a fully qualified name which includes the application, which form it's on, and which controls are it's parent. I need to tally how many time people are pressing these controls. I have the hash codes for them and I want to store the tally with each hash code as the identifying key. Any idea's would be appreciated. Thanks Matt P.S. - I was thinking about using a hash table but once I put the information into the hash table how do I incriment the value. This might sound simple and I hope it is, but I don't know how to do it. A ...Show All
Windows Forms Readonly PropertyGrid
Hi, either I'm missing something, or it seems to be inordinately difficult to get a (optionally) readonly property grid. I have an application which, using a propertygrid control, displays the properties of my object. Depending upon the user, they might be able to change those properties. My object has collections within it, exposed as properies (such as "Things"). It would seem that, in order to get a read-only version of my grid, all the objects that expose properties have to implement ICustomTypeDescriptor.GetProperties, return a collection of my own derived PropertyDescriptor, which in turn overrides the "readonly" property. Grrr.. That works, but what a lot of code. Things get messy with my collection p ...Show All
Windows Forms Problem with CheckBox on GroupBox on UserControl on a TabControl not responding after Validation
I have an issue. I have a CheckBox on a GroupBox on a UserControl on a TabControl that stops responding to user events after Validation. To build this yourself, create a new windows forms project. Create a user control. On the user control, place a groupbox, and in the groupbox, insert a checkbox. Create a validation event for the usercontrol, and set e.Cancel = true after a messagebox.show() so that you see that validation was called. Then, back on the form, place a tabcontrol, and then place the created usercontrol on the first tab of the tabcontrol. In the form's load event, set focus to the usercontrol by calling the select function of the usercontrol. Run the app. Select the second tab to attempt tab to the second tab. The validation ...Show All
Visual C# Need CCW to support [hidden] and helpcontext
I have a C# project that exports part of its API into COM using regasm. I need the API to include features that don't seem to be well documented. These are: [hidden] - I need to mark certain properties/methods hidden in COM. I realize that no such concept exists in C#, but it does on COM. [helpcontext] - How do I support context-sensitive help This includes helpcontext, helpstring and helpfile. Note that this is not a graphical API or GUI control. It is a library implementing a set of interfaces. Searches around MSDN and Google have revealed no answers so far. nobugz wrote: Unfortunately, you can't set a reference to the .tlb it generates unless the type library is registered. I use regtl ...Show All
SQL Server Problem creating a Foreign key Constraint
Hello, I'm having some problems trying to create this foreign key constraint: ALTER TABLE dbo.t2_demaclie ADD CONSTRAINT FK03_T2_DEMACLIE FOREIGN KEY (dclPerfilCompania, dclOrdenPedido) REFERENCES DBO.T2_PEDIDOCLIENTE (cdPerfilCompania, nmOrdenPedido) Server: Msg 547, Level 16, State 1, Line 1 ALTER TABLE statement conflicted with TABLE FOREIGN KEY constraint 'FK03_T2_DEMACLIE'. The conflict occurred in database 'Comfruta_dllo', table 't2_pedidoCliente'. I'm sure there's no other constraint with the same name, and there's no othe one with the same columns... Thanks a lot !! Well, you're going to have a problem creating the foreign key - you may want to work out what the keys in those field refer to. (For example, ...Show All
Smart Device Development Choosecontact API for windows Mob 2003 ?
hello, ChooseContact is the API. i have use to extract details of email recipents. but this API is for Windows Mobile Version 5.0 and later. i have to perform the same task in windows mobile 2003 which API I use to perform this task (extract email addresses from recipent list). Thanks -Salman Hello, I am newbie. i am using C++ for development purpose so i think MAPI is right for me. i read MAPI sdk documentation. (Sample Address Book) but didnt understand, how i use this API it Executable: SMPAB.DLL Directory for source code: FLATFILE.AB How i encorporate it in the program (using c++, windows mobile 2003) code sample or other resourse is hig ...Show All
.NET Development Consuming .NET Remoting Objects From COM Client
Hi All! I have a peculiar situation where I must consume a set of remote managed objects (written in Fx 1.1) from a COM client (written in VB 6). In order to accomplish this, this is what I thought of: A managed interface library ( Interfaces.dll ) to be used by both the remotable objects as well as the COM client. This library is also used to create a .tlb which is registered on the client for use by the VB/COM client. (I had to customize the tlb created by TLBEXP, since it was not correctly converting multiple levels of interface inheritance.) A managed concrete class library ( CoClasses.dll ) that contains the implementation of the interfaces. This class is also registered as a COM class and contains all the classes that ...Show All
Visual Studio 2008 (Pre-release) How to get texture Coordinate when I click 3d model in Viewport3D ?
I am trying to get texture Coordinate for the picked one point when I click 3d model in Viewport3D , I have a sphere model in Viewport3D . I don't know what I have to do to get texture Coordinate when I click 3d sphere model in Viewport3D . Can anyone help thanks. It should be something like: MeshGeometry3D mesh = rmg3dhtr.MeshHit; Point texCoord1 = mesh.TextureCoordinates[rmg3dhtr.VertexIndex1]; Point texCoord2 = mesh.TextureCoordinates[rmg3dhtr.VertexIndex2]; Point texCoord3 = mesh.TextureCoordinates[rmg3dhtr.VertexIndex3]; Point texCoordHit = rmg3dhtr.VertexWeight1 * texCoord1 + rmg3dhtr.VertexWeight2 * texCoord2 + rmg3dhtr.VertexWeight3 * texCoord3; This may not be right if you have a Brus ...Show All
Visual Studio Team System Test Run deployment issue --> DirectoryNotFoundException because of getting the files from debug folder
Hi. I am strugling for some hours to get my tests up and running in a dailybuild. On my local machine i can run te test but when i run the build type i get the following error: C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning: Test Run deployment issue: Failed to get the file for deployment item 'TestFundadeskObjecten\InsertTests': System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\buildfolder\Valentina\Alles\Binaries\Debug\TestFundadeskObjecten\InsertTests'. The folder should just be C:\BuildFolder\Valentina\Alles\Sources\Valentina\3_ApplicatieLaag\TestFundadesk\InsertTests The deployment value inside my localtestru ...Show All
Visual Studio Express Editions My Computer Goes Out Cus Of Visual C ++ !! help!!
I dont know whats the problem but my computer goes out several times after being on it a while. The programme suddenly comes "microsoft visual C ++", then my computer goes out! Anyone know whats the problem help please ... Ty. Any idea what the problem is and, i never download visual c ++ as far as i can remember ... never knew what it was ... i just search visual c ++ trough google, and come up out here ...Show All
Visual C# Recompile causes IDE Crash
I have written my own control that inherits from the System.Windows.Forms Control object. It is basically something that had to be written in order for the developers I work with to plug a visually interactive interface into their apps. It is a lot like the WinForms treeview in appearance. The Problem: When ever anyone writes a control that inherits from this control, if they have the desinger open to view it and they build, the IDE crashes. Does anyone have any clues as to what is happening here. I am sure it is something to do with me not understanding how to develop a control that is ment to be used by the desinger. Something with the componant model or something like that. I am reading all I can to figure it out, but if anyone has any ...Show All
