StumblingInTheDark's Q&A profile
SQL Server RS2005: ReportManager and Forms Authentication : The report server is not responding
Hi, Sorry for the long post but I'll try to give a maximum of information. I've tried to implement Form Authentication for Reporting Services. Right now, just about everything works as I would hope for, i.e.: When I try to access http://<server>/ReportServer$SQLSERVER_2005 , I am redirected to the authentication form. When successfully authenticated, I can access the report I can display reports throught the ReportViewer Web control by passing the authentication cookie. Etc. (Note: My implementation of Form Authentication was inspired by http://www.devx.com/dotnet/Article/26759/0/page/1 which seems similar to Microsoft Sample) (The $SQLSERVER_2005 suffix is because SQL Server 2000 is also installed on the s ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my database was not updated. I add another form to my app with droped table from tolbox. VS created ...Show All
SQL Server Pivot query error
I'm trying to simulate an Access query in SQL and reached a dead end. SELECT * FROM (SELECT AccountNumber , Convert(varchar, startDate, 101) AS startDate , Convert(varchar, resultDate, 101) AS resultDate FROM [TableA]) AS D PIVOT(SUM(Amount) FOR resultDate IN([02/27/2006],[02/28/2006],[03/01/2006],[03/02/2006],[Outstanding])) AS P Now I want to add two things: 1) Add one more column 'Total' containing the total of amount for each startDate 2) Add a column 'OutStanding' in PIVOT which should contain SUM(Amount) where resultDate IS NULL. How do I do it PIVOT has lot of restrictions and you cannot generate multiple aggregates for example. So It is easier t ...Show All
Visual Basic :: Serial Receive :: Helpp
Hey all.. i could be called a novice in VB.NET.. ive used it for two big projects with serial comms with no problems, but im getting a problem with the serial communications this time.. when data is received , the function takes the received byte and should store it, but it doesnt let me write it to a text box, i get an error in debugger... Error: Cross-thread operation not valid: Control 'TextBox22' accessed from a thread other than the thread it was created on. Code: Private Sub myport_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles myport.DataReceived Rxint = myport.ReadByte TextBox22.Text = Rxint End Sub P.S. - Rxint is an integ ...Show All
SQL Server Got BIDS working, was there another way?
i re-installed the SQLEXPR_TOOLKIT.EXE several times(4) trying to get the BIDS part to work. Each time i had the issue of it looking for the devenev.exe as others have mentioned. I gave up on a 5th install and went for the unsupported option of running vs_setup , after the toolkit.exe dumped all the install files to its temporary directory i went in there and ran it sperately... but essentially i did it the same way as this method... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368549&SiteID=1 while this did work, it seems to be the unsupported way. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=665067&SiteID=1 Im not opposed to going back and doing it right, but was there ever a conclusion as to why the BIDS prog ...Show All
Visual Studio Tools for Office Can I clear the undo list w/o saving Presentation in PowerPoint
Hi, all In our PowerPoint plugin, we do some un-undoable operations, and don't want user to undo our operations. So, I want to clear the undo list. I can't find any methods in msppt9.tlh which can clear the undo list. I searched the web, the only way I find is to save the ActivePresentation. But, in our application, we allow user to continue working w/o saving the ppt file. So, my question is, is it possible to clear the undo list w/o saving ppt files,and how Thanks! I'm sorry, but this forum does not support questions about the Powerpont object model or addins that work with Powerpoint. Currently the VSTO technology only works with Word, Excel and Outlook. So you're also unlikely to ...Show All
Visual C# simple console question
I have a simple console project that I want to pass 2 arguments into. Here is a simple example of the code that I have. static void Main(string[] args); { string somevar = args[0]; string somevar2 = args[1]; doSomething (somevar, somevar2); } I want to run the program like this. C:\testapp.exe "C:\documents and settings\administrator\application data\testapp\" "C:\documents and settings\administrator\application data\testapp\toBeUploaded.zip" I tried it with and without the quotation marks but it appears that the program is only getting C:\documents for the first string and "and" for the second string. How do I get arount this That didn't seem to change anything. I am running t ...Show All
Visual Studio Express Editions Can A button have a click event of a value to deduct from Text Box
I have a text box that will have a figure entered into it at the beginning of the week. What I want to do is have a button that when clicked will deduct 1 from the total showing in the text box each time it is clicked. Is this possible, and if so could someone help me out with the click event please. Thanks heaps, Diane Thanks for your help with this, but I seem to be having a problem. The show method is causing my "Totals Required" screen to appear when I click my "subtract 1 button" and it is changing the totals on this screen but when I access this screen from my main form the totals have not changed. Here is a brief description of what I am trying to do. I have a total number of ...Show All
Visual C++ Virtua; class compile problem
Hi, I have a compile problem with a virtual class. The base class is a dll. Interface is, public interface class BuildModule { virtual void saveModuleDataTiny(TiXmlElement *startElement); } There are a few other virtuals in the above class that work fine, syntax is the same. The above class is then inherited in the class below, which is also a dll. public ref class BuildInputModule : public BuildModule { virtual void saveModuleDataTiny( TiElement * startElement) { //some xml code in here that compiles fine } } Both the above classes compile fine. Problem is in my application that uses the BuildModule. When creating the code in the app intellisense sees the method but when I create an insta ...Show All
Visual Studio uninstalling VS2005
Hi, I have a high spec (dual core, lots of ram etc.) laptop with Vista home premium. On trying to uninstall VS2005 the app took 4 hours to make a 'setup script'. Does anyone else have experience of this thank you Do you have a virus scanner active (such as norton or kaspersky) Try disabling that and the uninstalling (ofcourse, unplug your network cable first) :) ...Show All
Visual Basic WebBrowser Refreshing Problem
I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All
Visual C# Calling a method within a class from Main() - What am I doing wrong?
I'm in the process of learning C# by writing a simple program that converts Celsius to Fahrenheit and vice-versa. My current road block is calling the conversion methods from a class I created which is separate from Main(). For some reason, VC# cannot see the methods with the code I am using to make "the call." I am not certain if the problem lies with the code used to place the call or the way I've written the class itself. Below is the code I have written. First - The Class that contains the conversion methods... using System; namespace Convert { public class Convert { public float UserFahren; public float UserCelsius; public float ConversionFahren; public float ConversionCelsius; float CalcCelsius(float ...Show All
SQL Server Dynamic layout & whitespace
Hi, I have a report that, among other things, contains 3 tables laid out side-by-side horizontally. The first table is conditionally visible and when it is hidden the report contains whitespace instead of the table. The problem is that this causes an unappealing visual look because the other 2 tables look shifted too much to the right. What is the recommended way for dealing with situations like this There doesn't seem to be support for specifying the location (i.e. top, left) of elements based on expressions. Am I "stuck" with having to create multiple flavors of the report Thanks, Vitaly ...Show All
Windows Forms Export image to Excel
Hi We are working on a Windows application that requires data to be exported to Excel. How do I export an image like a company's logo to the excel sheet Thanks ...Show All
Visual C# Creating an Individual Thread for each User Control
In a separate posting, I explained how I was getting a strange graphics error with a tab page containing several User Controls: http://forums.microsoft.com/MSDN/showpost.aspx postid=790101&siteid=1 Each such page contains 3 to 25 such User Controls and each User Control is designed to display a Bar, Line, or Pie Chart. So there's definitely some heavy computations going on when a file is first opened. It was suggested to me there that the main UI thread is getting bogged down and this is the cause of the problem. Thinking about this some, I decided to instantiate each User Control in its own thread. I don't have a lot of experience with threading but wrote this code to accomplish this: // Create new thread for ChartPanel and execute ...Show All
