Attila Fogel's Q&A profile
Visual Studio Bold text and lines don't appear in print preview of imported report
I created a report that works and displays properly in both the preview tab in the IDE and when previewing it in the running application (using the crystal report viewer control in a windows form). I wanted to use the same report in another project. So, I chose to add an existing item and found the report. The report was added to the project just fine. However, if I run the application and preview the report, bold text and lines are not displayed in it. Oddly enough, if I resize the preview window using my mouse, they suddenly appear, so they are there. If I scroll or do anything else, though, they disappear again. They also don't appear in the preview tab in the IDE. Any ideas How can I use the existing report By the way, I'm usi ...Show All
SharePoint Products and Technologies Attempted to read or write protected memory?
I'm seeing the following error pop up several times a second in the application event log: Type: Error Date: 1/29/2007 Time: 8:34:24 AM Event: 6398 Source: Windows SharePoint Services 3 Category: Timer User: N/A Computer: SERVER Description: The Execute method of job definition Microsoft.Office.Server.Administration.ApplicationServerAdministrationServiceJob (ID 066aadf1-59eb-47b1-99a0-e91a9b0d0f49) threw an exception. More information is included below. Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I can't determine why it is having problems given that the server diagnostics (Dell PowerEdge 1400SC) has validated that the memory is functioning properly. Previous install of Share ...Show All
Windows Forms Remove blank lines from a textbox
Blank lines in a textbox can be: A series of spaces followed by a carriage return OR A carriage return OR A line filled with tabs How can I remove all blank lines from the text entered in my textbox Now there's some interesting input. Thanks Omegaman. So if I had a 'dirty' textbox and a cmdCleanParasbutton, how would I replace textbox1.text with cleaned paras using your regex Would you be able to show me your code ...Show All
Visual Studio Released.
We did code complete of documentation compiler ( code named "Sandcastle") on June 15th and currently we are testing the tool building our .NetFramework documentation. We would like to release the CTP version of Sandcastle in Microsoft download center by next week. The perf in our testing has been great as we are able to build the entire framework content in less than 1 hour. I am in the process of going through final check and code signing required to post this in our download center. Please expect the CTP in the next week or so and I will provide an update here as soon I post the CTP. Anand.. Well it is the end of that next week that the Sandcastle CTP should be release, where is it I too would love to see sandcastle ...Show All
Visual C# Don;t want to show the seconds value for DateTime.Now
Is there a property of DateTime.Now that allows me to not show the seconds of a datetime value, or must I do some Substring'in Thanks You can use the ToString method overload that accepts an format string as posted before. Here is a full list of formats supported: http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx ...Show All
Visual Basic Current row in dataset
hello, a question please. I am binding a table of a dataset to a listbox.datasource. When the usager choices an element of the listbox, how can I know the current row in the dataset Thanks... NetPochi, According to your question, I suggest to you to return the ListBox.SelectedItem property value. Or return the ListBox.SelectedObjectCollection class. Do you consider that is a solution ...Show All
SQL Server New Guy Question 2: SQL on-the-fly at package runtime?
Here I go again...thanks for your patience... I'm trying to create a single, all-purpose SSIS package that would move data from a source database table to a matching target database table. The requirement is to create the package such that the SQL statement used by SSIS could be supplied at runtime. This would allow a single package to be used for different SQL statements, representing different tables, rows and columns, etc. as needed. The data movement combinations are highly variable, so I'm hoping to find a flexible one-size-fits-all solution with a single package. I've looked at setting up a string variable for the SQL statement, and populating it at runtime using a config file or command line SET statement. The package is initially ...Show All
Visual Studio Tools for Office Application.OnKey
I want to disable short-cut "ctrl+s" in excel.. I use: Application.OnKey("^s", ""); But I want to activate again this chort cut. Application.OnKey have 2 parameters, string key and object procedure.. For reactivate short cut must second parameter to be omissed. Parameter is optional but in C# not exist overload of this method and must specified both parameters. I try with Application.OnKey("^s", null) but not working. ...Show All
SQL Server Can't run dts package job
I setup a job which call a dts package (I try to call it from file system and from SSIS Package Store with the same result) and it doesn't run. If you take a look from the SQL Server Agent you could see this --->> 2012-06-17 09:01:02 - ! [LOG] Step 1 of job 'prueba' (0x85B4D5E843DB3145A6A1A6A0A43D04F3) cannot be run because the DTS subsystem failed to load. The job has been suspended Any ideas janislkovach wrote: This was a dts in SQL 2005, right If so, how did you get to the dbo.syssubsystems table I know its in the MSDB but I can't get access to that table, even as an admin of the box. Any ideas Did you log in as a SQL Server admin ...Show All
SQL Server SQL Server 7.0 shows a suspect database after attaching it in SSME?
Hello, I have a database that resides in SQL Server 7.0 that I can attach in Microsoft's SQL Server Management Studio Express and I can see all the tables from the database in that program. My problem is that when ever I re open SQL Server Enterprise manager, the database that I attached to SSME, shows up as Database(Suspect). Now I am unable to view my tables in that database. Can anyone tell me what causes this, and how I can resolve that issue I need to have my sql server database, and sql server express edition database present in SSME because I am doing an import of data from SQL Server 7.0 to SQL server express. Also, if there is another easier way to import data from SQL Server 7.0 to SQL Express edition, I would like to ...Show All
Visual Studio Express Editions Generic ToString function for Enum flags
The ToString() method of Enums is useful for diagnostic purposes. For example, the following code Enum SType AServer = 1 AnotherServer = 2 End Enum Sub Test() Dim Server As SType = SType.AServer Debug.Print(Server.ToString) End Sub will output "ServerType: AServer". But if the Enum represents bit flags, I need to write a specialised function to list the names of the flags that are set. For example: Function ServerTypeToString( ByVal Flags As ServerType) As String Dim flag As ServerType Dim outputBuilder As New StringBuilder For i As UInteger = 0 To 31 flag = CType (Flags And CUInt (2 ^ i), ServerType) If flag <&g ...Show All
Visual Basic How to clone a control
How to clone a control For eg, I want to create a new RadioButton in VB which have same properties, event handlers, etc as another RadioButton. Do you want to clone at design or run time At design time you can simply copy-and-paste to clone the control. At run time you need to make a function that copies all the attributes and event handlers to a new object. ...Show All
Visual Studio F1 not going to correct topic or can't find page
My MSDN help is messed up, it used to work fine. But now when I hit F1 it reports that if can't find the topic, though it's in there when I search. I also reports wierd topics, like I look for 'printf' and end up with HTML Designer Is there any way to correct this problem, I've tried re-installing MSDN that didn't work. Do I have to fully take down my dev system to get this back up and running. Same with localy installed MSDN (MSDN Library for Visual Studio 2005). Same problem. F1 doesn't work. I gave up using MSDN. ...Show All
Visual C# Thread looping with EndInvoke and InvokeRequired
Hi! I've a rare problem doing a query to a DB and try to update a DataGrid. I make a asynchronous query to BD, and when ends callback to a EndQuery function: private void void EndQuery( IAsyncResult ar) { TareasAsincronas.Remove(ar); TareasAsincronas.TrimToSize(); DataSet Resultado; BD .Q.EndInvoke( out Resultado, ar); ActualizaGrid(Resultado); } private void ActualizaGrid( DataSet DS) { if (dataGridView1.InvokeRequired) { CallBackA RCB = new CallBackA (ActualizaGrid); //<<<--- StackOverflowExeption here !!! RCB.Invoke(DS); } else dataGridView1.DataSource = DS.Tables[0]; } Where'is the problem IDE warning me for a infinite loop or infinite recursion... Regar ...Show All
Software Development for Windows Vista LockProfile of IStreamBufferSink
I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. I still say you should file a vista bug. Requiring people to be an admin to use SBE doesn't seem like a good plan. Especially given that vista doesn't want people running as admin in the first place. ...Show All
