nhaas's Q&A profile
SQL Server Wat kind of stream can be used to save report in my local machine from reportserver
I want to save the report automatically to my local mahchine from asp.net application. I can get the pdf file from the report server. http://webdev/reportserver /HCV&rs:Command=Render&rc:Parameters=False&vendorID=999&ReportDate=03/31/2006 What kind of stream can I use to read the report and save it . I appreciate who have any sample code or any reference to help me get this step. You can use System.Net.HttpWebRequest - some pseudo-code below: HttpWebRequest request = new HttpWebRequest(); // or use .Create request.Url = your url; request.Credentials = System.Net.CredentialsCache.DefaultCrede ...Show All
Visual Basic Class Structuring
I have a set of routines and functions I wish to group together under a class. I have spent some time looking around the Internet and have figured out how to set and use a basic class. However, I need to do more than what I have seen and without training or access to books to tell me, I'm stuffed. If somebody could give me the basic structure for the following, I'll hopefuly be able to take a look and expand upon it to cover my needs. The class accesses a sql database and returns useful information to any applications which will inherit the class. As the database may move to a different server in the medium term, I want t ...Show All
SQL Server failed to install sql server express due to Cannot alter the login 'sa'
Hi, I am using dell precision m60 laptop with xp professional sp2. I had trouble to install sql server due to " Cannot alter the login 'sa'". I am part of administrators for this machine. Below is the log. Any idea thanks. -dale SQL_SUCCESS_WITH_INFO (1) in OdbcStatement::execute_batch sqlstate=01000, level=0, state=1, native_error=15457, msg=[Microsoft][SQL Native Client][SQL Server]Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install. SQL_ERROR (-1) in OdbcStatement::execute_batch sqlstate=42000, level=16, state=1, native_error=15151, msg=[Microsoft][SQL Native Clie ...Show All
Visual C++ Newline in TextBox.Text property
I am programatically changing the value of a TextBox's Text property, and I need to be able to create newlines in the text for it to be readable. I can use the /n escape character when I'm creating a command line tool, but when I try to use it in the value of TextBox's Text property, it won't work. It just displays a little line. Any help is appreciated! ok actually the other guy was right you need both exactly like he posted, you need "/r/n" at the end of the string, this makes it go to a new line in a text box something like this might be what people are looking ...Show All
Visual Studio Team System Reports contain no data (Possible internationalisation error?)
TFS is working fine and our team has started using it in earnest now as we move our first big project over to it. However, the reports, even the Work Items report remains totally blank of data which is puzzling to say the least. I've been following the suggestions on here about checking the last time the cube was updated and I've refreshed that and all seems ok. One observation I do have, is the line on the report which says: "Report Generated: 12/9/2005 2:32:39 PM by <domain account>; Last Warehouse Update: 09/12/2005 14:05:56" You will notice that the two dates are in different formats: Reporting Services is in US form ...Show All
Visual C++ debugging issue
If anyone can clue me in it would be appreciated!!!! I have written an application in VC++.Net 2005. I get different results when I run "Start Debugging" from when I run "Start Without Debugging". How can this possibly be What are some possible causes hoosierboy There may be a race condition that is only apparent in one of the cases. We run the same binary in both cases so it's not an optimization issue I imagine. Can you add some extra detail as to what is behaving differently Ideally, a short code snippet would be ideal. Thanks, ...Show All
Visual Studio Team System Generate Application Diagram from the project
Hello, from the application diagram I can generate the project. How can I do the viceversa (from the project to the diagram) Thanks, Pierre Hi Pierre, Yes you can do this for application prototypes supported on the application diagram (ASP.NET Web services, Web apps, Windows apps). We call this reverse engineering and to do it, right-click your solution node and add a new Distributed System Diagram to the solution (application diagram). You can find more information about doing this out here at http://msdn2.microsoft.com/library/ms181830(en-us,vs.80).aspx Please let me know if you have more questions. ...Show All
Visual C# how to save a graphics into a jpg file
Now the graphics are painted in a form and i want to save the graphics into a jpg file. Which class will implement that what about ImageConverter class should i first transform the graphics into a image. By the way, i am not sure whether the image class will be useful. thank you Hi, I still get a big black box, here's some of the code I'm using: first my toolbar button for print: if (e.Button == this .tbPrintForm2) // print the validated version of the doc { _bmp = (Bitmap)_currFormImage; pd2 = new PrintDocument(); pd2.PrintPage += new PrintPageEventHandler( this .DrawPanel); PrintD ...Show All
Visual C++ I'm going to fall for the test
I need to write to a text file that has Unix linefeeds, but my Std C++-based console app is writing Dos linefeeds. For example, If I do something like: std::ofstream test( "test.txt" ); test << "Hello\nWorld" ; test.close(); The resulting file has \r\n in it (0x0d 0x0a when viewed with binary editor). The same thing occurs when I do fopen( "test.txt", "w") followed by fwrite, which sets the mode to text (the default). Only when I do fopen( "test.txt", "wb"), I get Unix LF (i.e. 0x0a only). But I would rather not have to dive this deep with my I/O code. Am I missing something Thanks, Brian ...Show All
Visual Studio Help still broken
Just installed the release version of VS2005 standard. Alas, F1 help is still broken. If I position the cursor over a word (for example HANDLE) and hit F1, the following happens: 1. If MSDN is set to use local help only, it always displays the topic-not-found page, even though on the left hand side, the topic is not only present, but selected. A single click on the highlighted item displays the correct information. 2. If MSDN is set to use online help first, then pressing F1 takes up to a minute (looks like multiple redirections happening), then either displays the topic-not-found page or displays something only vaguely related to the select ...Show All
Visual Studio Auto Print a Crystal Reports Report
I have a WebForm with a CrystalReports Viewer and is working fine, when I click the print button it works fine as expected. The question is that I need to make this Click in an automatic way, something like all.form1.PrinButton.click(), aimed to fire the event that prints the document, or someway to fire this event from the vb code. I've alrady checked the documents explaining how to print from the server, and with window.print(), but they don't work for what I need. Any Sugestions Thanks. Alex Reyes. I thought there was a way to grab the report name from solution explorer, in fact I know there is. Instead of the hard path with ...Show All
Windows Forms Problem to save collection property [VB.NET]
Hi, Before sorry for my poore english language ! So, I try to developp a control that have a property collection. This Collection have a property Item who accept only object of type is MyItem. The problem is that when i add item in my collection, there is no save operation !! I have read and test the different posts in this forum but it's doesn't work& ...Show All
Visual Basic Photo Matching Database
User selects a picture and querys the database for a match. How do I write the Code for this SELECT id, image, description FROM pictures [database] WHERE image EQUALS picturebox1.image I am concerned that the "image" format stored in the db will not match picturebox1.image and that I probably will have to convert picturebox1 into a binary array to match the format already in the database. Furthermore, I might have to compare byte for byte for both image. This would be too slow. I need the best (speed) way to match an picturebox with a stored image in the database. Thanks. ...Show All
SQL Server A Problems after the install of the Hotfix
After installing SP1 and then the hotfix: http://support.microsoft.com/Default.aspx id=918222 We now get the following error when trying to work with date parameters in Report Builder: Query (6, 117) The '[VBA].[DateSerial]' function does not exist. ---------------------------- Semantic query execution failed. ---------------------------- Query execution failed for data set 'dataSet'. ---------------------------- An error has occurred during report processing. Is this a known problem or is there some sort of something that I can reinstall Thanks! Sure thing. The problem comes with the prompted Transaction Date MDY. Without ...Show All
Visual Basic Multiple Icons In An Assembly
I am currently writing a program in VB .NET that requires a file type - .fol - to be associated with it so that people can simply double click on the .fol file to get my program. My problem is that i want a seperate icon for the .fol file other than the one my assembly has. What i want is to be able to somehow put more than one icon into the assembly - other than the assemby's icon - and link the default icon for the .fol file type with the second or third icon in my assembly, so that i don't have to include a seperate icon files. Like the way Dreamweaver has it's icons all its main assembly - Shown in THIS image. I have tried many tech ...Show All
