|
hi guys
my user have an excel sheet in which there are 2 columns ; one is username and second is salary
but my user want this report based on section which is stored some where in database with each user name .
how do i provide my user an interface so that he could generate report based on sections
?
thanks in advance
hello
|
|
|
|
|
ghumman63 wrote: but my user want this report
What report?? Is this "report" generating this Excel sheet you're talking about??
ghumman63 wrote: how do i provide my user an interface so that he could generate report based on sections
Sections?? What sections?? You're going to have to clarify what you're asking about. I have no idea what you're using or trying to accomplish.
|
|
|
|
|
Hello,
I find the way to get the MyDocument path in VS2005, VB.NET like that :
My.Computer.FileSystem.SpecialDirectories.MyDocuments
But I didn't find the way to get the All Users Shared Document path.
(in french "C:\Documents and Settings\All Users\Documents")
|
|
|
|
|
The whole My thing is just a bit of syntactic sugar, from the docs it seems it is incomplete. Probably AllUsersApplicationData is your best bet, then go up one and back down to the one you want.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
HI,
I HAVE A VB.NET APPLICATION, THERE IS A EXIT BUTTON IN MY FORM,ON CLICKING THAT I WILL SHOW A MESSAGE BOX , CHECK THE BELOW CODE
If MessageBox.Show("All the unsaved data will be lost! Are you sure you want to exit?", Me.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly) = DialogResult.Yes Then
--- SOME OPERATIONS --
END IF
THE PROBLEM is when i click YES OR NO, brings other open program into focus and hides this application
regards
winnie
|
|
|
|
|
Use the MessageBox overload that takes a window to be the parent window of the messageBox, so in C# you pass this, I guess you'd pass me in VB ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have built an installer using the Visual Studio 2005 setup project wizard. It installs correctly on Windows XP but fails on Windows Vista. As per my research i found that the failure on Windows Vista is caused by a custom action that fails with an access denied error. However, I am running the setup with admin privileges in Windows Vista. How can I fix my setup so it will work correctly on Windows Vista?
Error: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869"
Jats
|
|
|
|
|
I tried to field a solution on the above problem and followed the below process
1-Download the sample script and extract the contents to the directory that contains the Visual Studio project you are working on
2-Open the project in Visual Studio 2005
3-Press F4 to display the Properties window
4-Click on the name of your setup/deployment project in the Solution Explorer
5-Click on the PostBuildEvent item in the Properties window to cause a button labeled "..." to appear
6-Click on the "..." button to display the Post-build Event Command Line dialog
7-Add the following command line in the Post-build event command line text box:
cscript.exe "$(ProjectDir)CustomAction_NoImpersonate.js" "$(BuiltOutputPath)"
8-Build your project in Visual Studio 2005
Now a new problem... the installer built now is installing in some system's with vista and showing same error for other system's in Vista.
Please help me find a solution...
Jats
|
|
|
|
|
Hello all, I'm using VB.NET 2003 Window Form to do some simple application. I found a problem on setting a global database connection string. How should I code it if this connection string might be change like from localhost to a Server or vice versa? This windom application may used MySQL or even MS SQL database for database as well. Anyone have this kind of solution here?
I read some article told me to put inside a module for this,but how can I do it?
This is my current testing connection which connected to my localhost MySQL database which is running perfectly in my development stage now.
Dim ConnString As String = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;UID=root;PASSWORD=;Option=3;Port=3399;"<br />
Dim Objconn As New OdbcConnection(ConnString)<br />
Dim ObjComm As New OdbcCommand
Hope someone can give me a solution here. Thank you for reading.
|
|
|
|
|
I'm not sure what you're asking. IF you want to be able to change it later, put it in your app.config so a user can modify it, and have all code read it from there.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry,I'm asking how to declare a connection string which is used for my window form application. Please correct me if my idea was wrong. Is that the app.config file is just used for web based like ASP.NET for connection? I'm using window form here. Please give me some example how to do this.
For detail explanation,my application allowed the user to connect to localhost database or a Server database by pointing to a different IP address. How can I do this??
Regards
Drex
|
|
|
|
|
drexler_kk wrote: Is that the app.config file is just used for web based like ASP.NET for connection?
No, you are thinking of the web.config. You have an app.config in your project which is turned into <yourappname>.config when it is built.
Then you read values in code with this sort of thing:
string value = ConfigurationManager.AppSettings["connectionString"];
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Wow..Thats so easy for this code. Thank you for your solution. I have got what you mean now. Thank you so much Christian Graus.
Happy Coding everyone~!
|
|
|
|
|
You do realise that for each different server/database type you will need a different connection string.
The module you mentioned in your OP is the Data Access Layer (DAL), I recommend that you research this as it is the most common solution to your problem.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have been working on migrating a old ASP app to asp.net and the VBScript block that calls a DB2 stored procedure looks like this:
oCmd.Prepared = true
Set oParam = oCmd.CreateParameter("RETURN", adsmallInt, 3, 2, 0)
oParam.Precision = 4
oParam.NumericScale = 0
oCmd.Parameters.Append oParam
ExecuteCmd oCmd
oRsReturn = oCmd.Parameters
If someone can tell me how to convert the code to VB.Net that would be great, I don't seem to find the equivalent of the first line and the last line and I don't know how to create similar parameters.
Thanks for reading!
|
|
|
|
|
Well, you will use the OleDBSQL classes to do this. There won't be a one to one mapping of methods, I don't think.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to print out labels from inside a piece of screen area. My IDE doesn't like vbmillimeters (I am using visual basic 9). Anyone know how I can scale my output?
Example:
Printer.ScaleMode = ScaleModeConstants.vbMillimeters
Printer.FontSize = 16
Printer.FontBold = True
-Live long and prosper
|
|
|
|
|
winsane wrote: My IDE doesn't like vbmillimeters
What do you mean ? What are vbMillimeters ? Doesn't the IDE auto complete tell you what your options are ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
can you help me i have in one of my forms small Arrow in the solution explorer and when i move my project to other computer it can not open the designed and it give error massage that it not found
how can i remove it
please help
|
|
|
|
|
The little triangle with an exclamation point (not an arrow), that the file is listed in the project, but it's not found on the disk where it is expected to be. All you have to do is remove the file from the project and re-add it, if you can find it, or copy the file to where the project expects it to be.
There may be missing files that you don't know about either. For instance, under 2005, a normal Windows Form has, usually, three files associated with it, A formName.Designer.vb file, formName.resx, and formName.vb. If any of these files are missing, you'll get the little yellow triangle.
|
|
|
|
|
i do it but it steal exist
and all the three file are exist in the project folder
|
|
|
|
|
You're missing a file somewhere. At the top of the solution explorer window, there is a button, I think it's the second form the left, that says "Show All Files" when you have the mouse over it. Click on that button and you should be able to see exactly which files are missing.
Now, you have to check to see where the files are. You may have them, but they are probably not in the correct folder. If you open the folder that .SLN file is in, you should see something like this:
ProjectName
|
+--ProjectName.sln
+--ProjectName.suo
+--ProjectName (folder)
|
+--ProjectName.vbproj
+--ProjectName.vbproj.user
+--Form1.Designer.vb
+--Form1.resx
+--Form1.vb
+--bin (folder)
+--My Project (folder)
+--obj (folder)
If, for instance, you have the project files in the wrong folder, or not in a subfolder like this, but the solution file expects it, you'll get this problem.
|
|
|
|
|
thanks
but i found all the files with an exclamation point is their a way to know the path of the folder becase i copy it befor this time and but it in my disk top after that the exclamation point aper
but i am sure that all the files in the right folder
|
|
|
|
|
asha_s wrote: but i am sure that all the files in the right folder
The solution explorer is telling you otherwise. I've already given you the folder structure of a normal VS2005 solution. If the structure doesn't match up, you've got the files int the wrong places, or you've renamed folders when you shouldn't have. The folder names are very specific and buried in the .SLN and .VBPROJ files. The paths listed in the .SLN file are relative to the folder that contains the .SLN file. Likewise, all the paths listed in the .VBPROJ file are relative to the folder that contains the .VBPROJ file.
You have a few choices at this point.
Create a blank Windows Forms project and save it, examining the .SLN and .VBPROJ files for how the path names look, comparing them to the folder structure you see on disk. Then, compare what you've seen to what you see in your projects .SLN and .VBPROJ files.
Use the existing project and remove all the files from the solution in the solution explorer, then re-add each of your code files on disk back into the solution explorer.
Scrap this entire folder and re-copy the entire solution folder from the original source.
|
|
|
|
|
thanks it work
|
|
|
|