|
i have project i want import database of xml into sql 2005 but before insert
database.program must prepare database of xml and database of sql 2005
if have different row database between two database then have record
you help me?
thank
|
|
|
|
|
Can you pls xplain a bit more
|
|
|
|
|
Public Property HIGHEST_PRICE() As Decimal
Get
Try
Return CType(Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn), Decimal)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'HIGHEST_PRICE' in table 'STS_STOCKS_INFO' is DBNull.", e)
End Try
End Get
Set(ByVal value As Decimal)
Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn) = value
End Set
End Property
my project have error:--> StrongTypingException was unhandled
|
|
|
|
|
The StrongTypingException comes from you throwing it if an InvalidCastException occurs. Seemingly it does, so this means Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn) could not be casted as a decimal.
|
|
|
|
|
|
i have made two setup. one is window application(desktop Application) and second is website(local website) setup.my problem is that i want to make only one setup that installed these two setup.Please guede me.
Suahail Shahab
|
|
|
|
|
There can be two solutions for these:
1. Write a batch file, and call these two setups one by one
2. Create a new installer project, and add the execuatbels and dlls manually specify their desired output location.
Infact you only need to ask for win app location. For Wep App you can just get the name of app in a textbox(if you want)
|
|
|
|
|
Can any body tell me how to connect & manipulate a FileMaker Application in .net
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
I tried their sit but i am not getting sufficiednt information about how to connect it with the .net application and to manipulate it.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
We are trying to create an aggragate function that needs to accept 3 parameters. one parameter is a variable, and two are constant once initialized.
does anyone know how to do this?
|
|
|
|
|
Do you mean one parameter is optional? All parameters are variable, else it is pointless having parameters.
In VB.NET you can use the Optional modifier on the third parameter, but in C# you have to have two, overloaded methods, one that accepts three parameters, and only two parameters and calls the three parameter version with a null parameter or some other indication to ignore the third parameter.
|
|
|
|
|
I want to know the length of string in pixels in a web based applicaiton. can anyone tell me how can i get it..?
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
Well to know that you have to know the Font object the string is formatted with. Even then I'm not convinced it will give back exact results under all circumstances (also note you can change font size in the browser without the server-side knowing of it). With these limitations stated a good approximation would be:
int width;
System.Drawing.Font myFont = System.Drawing.SystemFonts.DefaultFont;
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(1, 1);
using (System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bmp))
width = (int)g.MeasureString("myString", myFont).Width;
bmp.Dispose();
|
|
|
|
|
Hey Thanks a ton for the response. The code worked. Now I just need to set the width accordingly. Thanks once again.
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
In a web based app? There's no way to figure this out. Your ASP.NET app doesn't have access to any resolution information abtou the clients machine, DPI settings, the font the browser is actually going to use to render your content, ... You can't get any of the information you need to figure this out.
The only way to simulate this is if you wrote the string to a bitmap image, then sent the image to the browser.
|
|
|
|
|
If web based applications have access to the Graphics object through any paint routines, then you can use the measurestring method.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I'm hoping someone has some advice or can point me in the right direction on this as it's been doing my head in for a week.
I've got a Visual Studio 2005 solution, and I've added an installer project to it. My problem lies in the fact that the projects that are to be installed use two versions of the Enterprise Library. Some projects contain legacy code that uses V1.1 of the Enterprise Library and some, that have newer code, uses V2.0 of the Enterprise Library. When I add the main project (the one that references everything else) it attempts to add all the dependencies including to the Enterprise Libraries.
This causes confusion - VS throws up lots of warnings about duplicate assembly names and it installs the files randomly - Sometimes a V1.1 DLL sometimes a V2.0 DLL.
We've compiled the Enterprise Library such that it can be installed in the GAC. But adding the Enterprise Library FIRST to the installer project and into the "Global Assembly Cache Folder" doesn't appear to help. When I add the projects to be installed it still insists on installing (randomly) the Enterprise Library in the installation folder - while complaining bitterly about it too!
Finally, I've tried adding the assemblies individually (instead of selecting Project Output) but it still picks up the dependencies and insists on adding them to the installer.
Does anyone have any ideas of how I can overcome this problem and actually build an installer that works?
|
|
|
|
|
You might actually have to dig into the msi database. Its been a while but in the past I have had to use the Orca tool (I think that is what it was called) to force some issues. You might be able to bypass the IDE and add the assemblies directly to the database.
only two letters away from being an asset
|
|
|
|
|
I don't really like the idea of that. It looks like it would make rebuilding the installer a bit of a challenge.
I've discovered that I can select a file's properties in the installer and exclude it (Delete wouldn't work) so I'm going to try that.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
i write a program in vb.net and i have made a setup of it.My requirement is that when i installed the setup than automatically software run. is it possible? tell me what option would set in making setup that automatically run ater installed the setup plz guide me.if there is any solution.
Thanks
suahil shahab
|
|
|
|
|
Try using the custom action and call the execuatble once your installation is done.
Hope this helps.
|
|
|
|
|
Hi,
I have got a TestSol which contains three projects , but all three projects are not selected for build, it means if I build whole solution then none of the project would be built, but if I build the one specific project then that would be built fine. but when i want to perform same task throught MSBuild by providing command "MSBuild "E:\MyTestSol_noneprojectincluded.sln" /t:TestProject1:Rebuild "/p:Configuration=Debug" but i get the error "The project "TestProject1" is not selected for building in solution configuration "Debug".", how can i successfully build the TestProject1 in a solution even it is not selected in the solution configuration.
Warm Regards,
Mushq
|
|
|
|
|
Hi
I have a few class files that I need to reverse engineer to get UML diagrams. I have Visio Professional 2003 installed on my system , and the Visual Studio version is 2005 Professional.
I searched msdn, where i read the below directions, but I am not able to find the Visio option in my Visual Studio, please let me know how do I do this, is there a way to add the Visio component into Visual Studio?
-------------- from msdn-------------------------
In Visual Studio, in the Solution Explorer, select a solution.
On the Project menu, click Add New Item.
In the Add New Solution Item dialog box, click Visio Files, and then click UML.
Under Templates, click a UML diagram, and then click Open.
-- modified at 23:20 Wednesday 6th June, 2007
Every thing is Illusion
|
|
|
|
|
In VS.NET 2005 right click a .cs file and chose "View Class Diagram".
http://stefanprodan.wordpress.com
|
|
|
|