ManoEG's Q&A profile
.NET Development How to download/Save dialog box a file using vb.net?
Hi Guys, I am developing an web based application which enables users to upload and download their files. I know how to download it in a specific location via code-behind but Is it possible to make IE opens "save" dialog box and asks user where they would like to save their files any help welcomes tanx Hope following helps you FileInfo objFileInfo; try { objFileInfo = new FileInfo (filePath); Response.Clear(); Response.Cache.SetCacheability(System.Web. HttpCacheability .Private); Response.AddHeader( "Content-Disposition" , "attachment; filename=" + objFileInfo.Name); Response.AddHeader( "Content-Length" , obj ...Show All
Visual Basic Computer info?
How would I show PC info as in CPU(Name/GHz) RAM(total in MB) Sound(card name) Video(card name) Thanks for marking it as an answer. In addition, you can use this cool tool to generate some WMI code for you in a variety of 3 languages: VBScript C# VB.NET I think its a cool tool especially if you are wanting to know how to get started and what classes/properties/methods exist in the WMI model: http://www.microsoft.com/downloads/details.aspx familyid=2CC30A64-EA15-4661-8DA4-55BBC145C30E&displaylang=en ...Show All
SQL Server PInvokeStackImbalance when exporting report to PDF with chinese chars
Is there a way around this This is a blocking issue for me. The generated pdf contains ' ' instead of the chinese chars. I use Reporting Services in local mode. Thanks for your help. Charles Here's the call stack: PInvokeStackImbalance was detected Message: A call to PInvoke function 'Microsoft.ReportViewer.Common!Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF+WindowsGDIWrapper::GetGlyphIndicesW' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. [Managed to Native Transition] > Microsoft.ReportViewer.Common.dll!Microsoft.Repor ...Show All
Visual Studio Team System Team Server security and VPN
I'm the administrator on our TFS system. I have a user who is connecting to our network through VPN. I want them to be able to check in and check out files, basically he is a member of the Contributors group for the project. He can see the project and the solutions in the project, but he can't check anything out. He can't even right click on the project and get a popup menu. Is there a setting for VPN users If it's security, why can he see them, but not do anything with them We were running under workgroup, but now we've upgraded. Thanks. Also, have the user go to Tools/Options/Source Control and make sure that the currently selected "Source Control Plug-in" is "Visual Studio Te ...Show All
Visual Studio Express Editions open a file into treeview
hy i have a problem with a treeview i have a file named file: now i want it to open the file and: when website (like www.google.com ) add the website (this is working), but i also want it to make a new root and add al later websites to that root when there is a + in the file. Also when there i a - it must go to the top level. i now have this code but it gave me no results private void openFavorites() { try { FileStream list = new FileStream ( "favorites.txt" , FileMode .Open); StreamReader reader = new StreamReader (list); while (reader.EndOfStream == false ) { string line = reader.ReadLine(); if (line == "+" ) { TreeNode root1 = new TreeNode ( ...Show All
Visual Studio Messagebox shifting the focus
Hi, I am developing a plugin for visual studio.net 2003 . In that i am saving a file explicitly which is my active document with ExecuteCommand .I am flashing a MessageBox before executing save command. It changes the inherent behaviourof visual studio .Inspite of saving the file first it starts saving either .sln file or .vcproj file.After then only it saves the file.If i remove the messagebox it works fine (Save the file only). As per my understanding , the flashed messageBox is shifting focus from active document to some other. Kindly let me know why it is happening. I want the messagebox but do not want to save solution or project files. Thanks in advance, Ruhina Hi Ruhina, I suspect your analysis ...Show All
Windows Forms Resource Files and Databinding
Hope some can help me here... I am in the process of internationalizing my app and as a result I am creating a resource file called localstrings.resx. I now want to bind the text of controls like labels etc to these values. I can do it in the forms .designer.vb file by setting the text property to the value of the caption ie me.lblFile.text = My.Resources.LocalStrings.CAP_FILE but each time I use the designer is overwrites this code and replaces it with the string value rather than keeping the pointer How exactly are you supposed to bind the properties to the resx file because when I tried using the databinding property on the control, it wouldn't allow me to bind to the localstrings class Any clues Cheers Mark ...Show All
Visual Studio Team System Want to know which component should add?
Hi, Sorry if i post in wrong section. I just want to know about Target Designer to add which component for running sound card(common) and instal visual studio This component is not make by me, because i ask the person that provide that software. I got ask that person incharge to make this tool and he say already add the component and i got trial version windows embedded for testing the tools but i still how to make it and don't know which component should i add and I got problem when install particular info from that person giving me. I heard some component are missing. About the sound card, can't support some sound card and the visual studio some file missing. Sorry i use this for testing before giving to end-user. Very sorry ...Show All
Visual Studio 2008 (Pre-release) Error : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid.
Hi, I've created my first test application and I got the following message : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid... I'm unable to find a reason, so if someone can help me to solve this Message : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid. The required mapping and metadata information could not be found. Parameter name: defaultContainerName The inner exception message is : The Entity Container Type 'HRISBusinessModel.HRISBusiness' for the CDM space does not exist in Metadata workspace. MSL: < xml version="1.0" encoding="utf-8" > <Mapping p1:Space="C-S" xmlns:p1="urn:schemas-microsoft-com:windows:storage:mapping:CS&quo ...Show All
Visual C# this keyword's cons, pros or nothing?
Hello, I just installed Resharper Addon of Visual Studio and it pointed all the code where i used this keyword with a warning saying its a redundant qualifier. Its just my habbit to put a this keyword with instace variables so I can distinguish between function level and class level variable. But i dont know what effect "this" has Why Resharper is saying its redundant I'll be really happy to know what's effect of "this: keyword on the application code. Best regards, Rizwan here is bried description of the C# keyword this: http://www.codereference.com/book/csharp_syntax_this.aspx ...Show All
Visual C++ How to set file archive bit in C?
I thought it should be easy to set the file archive bit in C. In C++ with MFC I think I could use CFile::SetStatus. In VB you can set and clear the Attributes property. But with plain C, not .Net, I can read the attribute bit with _A_ARCH from _findfirst but there's no way I can see to set it. I can't just do system("attrib -A...") because that would be too slow for my application. So who knows a good way to set/reset the archive bit in plain C with VS6 Thanks for all hints and help. Thanks. I had to add an "s" but once I found documentation for SetFileAttributes, it worked fine. (and so fast after I posted too, wow :-). ...Show All
SQL Server Is this considered scale-out?
I picked back up an effort to get our reporting services DR scenario in place and am having some issues. Our corporate approach for production databases is to back-up the database to the local server disk, copy the back-up files to a remote office and restore the databases on remote DR servers. This process is scripted to run overnight so in the case of failure of the production environment we lose at most one day of work. Now, I would like to set up a parallel scenario for Reporting Services and started with reading a bit of documentation. I read "Moving a Report Server Database to Another Computer" and "Backing Up and Restoring Encryption Keys" and then set to work. I have two instances of SQL Server 2005 Standa ...Show All
Visual Studio Crystal Reports for Visual Studio Express
Dear Ashley: I need to learn Crystal Reports, the inexpensive way, to use it with VB Express 2005. Is there a free student version that I can download, to learn before I buy the real thing. Please, let me hear from you. Thanks. Luis Hm. I'm not quite sure which version of Visual Studio you are refering to here. I can tell you information about three SKUs that you might be referring to -- let me know if this helps. Visual Studio Express editions Crystal Reports is not included. Crystal Reports cannot be integrated with this product, even if you purchase and install Crystal Reports Developer . Visual Studio Standard Crystal Reports is not included. Crystal Reports ...Show All
Software Development for Windows Vista How to record from 'Wave' or 'Stereo Mix' in Vista?
Hi all, I wrote the following question in other forum space but some MSFT guy told me to try this forum for my question. I hope I could get right answer as soon as possible here. On Windows XP or earlier, I could capture the audio stream to the speacker not from the external device (maybe endpoint device in Vista) like the microphone. In other words, D irectSoundCapture was able to capture from the selected recording device/source line in the Windows record control utility or mixerXXX APIs. And if "Wave Out Mix" or "Stereo Mix" or something similar was selected as recording source line, D irectSoundCapture was able to record the audio stream to the speacker. However, I could not find the way to do tha ...Show All
SQL Server Please Help! "Out of present range" error in SSAS 2005
When I run the following MDX Statement from SSMS select descendants ([Stores].[Stores].[All Stores],Store) on columns from MyCube I get the following error Executing the query ... The following system error occurred: Out of present range. . Execution complete However, when I run the following, I get no error: select {[Stores].[Stores].[Store]. members } on columns from MyCube What can possibly be causing the "Out of present range" error What does this error mean Does it have to do with the Stores dimension Or with the cube itself Reprocessing the whole DB didn't help, nor rebooting the server. We have an undertermined number of queries using the above construct, and all of a sud ...Show All
