Raju Sreenivasan's Q&A profile
SharePoint Products and Technologies Design consideration for MOSS based SITE.
Hi, Can anyone tell me how can I design the MOSS based site/portal, that uses Microsoft best practices. I mean what deliverables will be for it. For example Entity-Relationship diagram etc. Any sample diagram will be appreciated. Thanks! ...Show All
.NET Development How to using codedom to modify a source file?
How to load an exsiting cs file and modify the code using codedom Don't know how to start, any samples Thanks. using only .net framework you can't. .net framework doesn't have a parser to read existing source code to codeDom. It can only generate code from codedom. marius ...Show All
Visual Studio Express Editions Background task (daemon)
How do you write a program that does not open a console window or a win32 window In other words, a program that runs without displaying anything on the screen I know how to do it with VC++ 6.0, but I can't figure out how with Express. Best regards, Jive Alternatively, you could create a Windows application where instead of having int main(void) as your entry point you use: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return 0; } This function is usually used to create a window. In this case, we're not bothering to create a window. ...Show All
SQL Server BLOB Merge Replication
Hi, I have setup a Merge Replication between a SQL Server 2005 and a SQL Server Mobile using native C++ code in Windows CE 5. Replication of normal data types (nvarchar, ints etc) works great, but when I try to replicate a blob about 1.5 MB the performance is awful. The download phase seems to be quick while the applytime (printed in debugger) when the database on my CE device is updated is about 3 minutes for 1.5MB binary data which is unacceptable since the database gets locked up during the applytime. The BLOB column is defined as image data type which shall hold up to 1GB data. I have tried to disable compression during replication, but it doesnt matter. Does anyone have some experience of using merge replication with blobs in SQL S ...Show All
SQL Server Displaying an database image in SSRS Report page header
How to display an database image in the Report page header of sql server reporting service u can do that esily with the help of parameters which will be useful for bulk reports 1) add a calculated field in dataset named imagebase64 in that add the following expression Convert.ToBase64String(Fields!Photo.value) 2)Add report Parameter named image set the datatype as string. in the default value select the dataset and value field as imagebase64(calculated field) set allow blank-true set prompt-image set hidden-true 3)drag a image in to the page header in the value field add the following expression Convert.FromBase64String(Parameters!Image.value) hope this will help! ...Show All
.NET Development How do I enable useUnsafeHeaderParsing from code? (.NET 2.0)
Hi, We have several webservers that do not follow the correct RFC specification when performing some specific HTTP web requests, in order to communicate with them we need to enable unsafe header parsing. Changeing the webservers to respond correctly is NOT an option in our case. According to documentation, adding the following lines to the app.config enables the unsafe header parsing. <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing = "true"/> </settings> </system.net> This works nicely for regular applications, however, the problem is that our .NET code is exposed and run as a COM object. And adding a .config file to .NET assemblies doesn't work, neither when being loaded b ...Show All
Visual Studio Express Editions Read a text file line by line.
I have a text file in which I would like to read line by line and display each line one at a time in message boxes. Can anyone help Text file is below. 4 113 2 A1455 00320 025 1819 122006 155 I would like the output to read in each message box: Line 1 = 4 Line 2 = 113 Line 3 = 2 etc. or you could read the whole file in one go and split it into each individual line something like Dim s As String = My.COmputer.Filesystem.ReadAllText("C:\test.txt") Dim c() As Char = {vbCrLf} Dim sa() As String = s.Split(c, StringSplitOptions.None) For Each s1 As String In sa Console.WriteLine(s1) Next ...Show All
Visual Studio Tools for Office if expression
I'm having trouble creating an "if expression". The statement is defined in my document template and is based upon a field's value in my database, example: "I am a friend trying to understand an if expression" could also read as: "We are friends trying to understand expressions" This is the code that retrieves the field's value: hlddata = Trim(rs("insplural")) pluraltxt = Me.Variables("pluraltxt") pluraltxt.Value = hlddata I am defining this statement in the msword.dot template as: {if{docvariable pluraltxt}= "Y" "{inserttext "We are friends trying to understand expressions"}" "{inserttext "I am a friend tr ...Show All
Visual Studio 2008 (Pre-release) cannot set a TemplateBinding to my TranslateTransform
Hi, " hope this is not a doubles post. i think i have problems with my "windows mail" - VASTA News Reader." i have a custom usercontrol. in the custom user control, i have defined two dependency properties. For example: // Set the Value for the TransformTranslation X public double TraX { get { return (double)GetValue(TraXProperty); } set { SetValue(TraXProperty, value); } } // Using a DependencyProperty as the backing store for TraX. This enables animation, styling, binding, etc... public static readonly DependencyProperty TraXProperty = DependencyProperty.Register("TraX", typeof(double), typeof(ZisCircleToggleButtonControl), new UIPropertyMetadata(8.0)); //// Set ...Show All
Visual Studio Express Editions From VB 2005 Express to Professional
I've bought the VB 2005 Professional, but I'm stil waiting for it. Are there any problem if I download the trial of the Express version, and later, I install my complete version, and continue with my project thanks. Hi dsoto, It shouldn't be a problem. Any project that you create in Visual Basic Express can be opened and run in Visual Basic 2005 Professional. From the FAQ page http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#compat : Will programs I build with Visual Studio Express Editions work with other versions of Visual Studio 2005, like the Professional Edition Absolutely. Express is a great entry point to professional software ...Show All
Visual C# Robotics Studio 2006
Hello, I am trying to get Microsoft Robotics Studio to work. I am using Visual Studio 2003. I am getting errors at every stage (ie. installing references, opening the sample projects) and I am wondering if it only runs on Visual Studio 2005. Thanks. Sorry, the robotics studio CTP does not work with Visual Studio 2003. But note, from the system requirements , that it will work with Visual C# Express, which is a free download . ...Show All
Visual C++ Help: old localtime() causing problem in VC++.NET2005
hi all I have written a library in VC++.NET using C. I call the function localtime which is defined in 'time.h'. I compiled the lib in VC++.NET and now i am calling the function of lib in a VC++.NET application. But the function in the lib causes an assertion in the the getlocaltime function. The file which is opened when the i try to debug is 'loctime64.c'. I dont know what is happening. can any one help thanks Aamer Hi, I think you must use a " _localtime64 " function instead of calling " localtime " function, but note that " _localtime64 " function is deprecated because more secure versions are available like " _localetime64_s " function . ...Show All
Windows Forms Getting ClickOnce to create a desktop shortcut
msdn states that ClickOnce supports the creation of shortcuts . I am using VS2005 Beta2. But I have not found a way to tap this feature. How do I set ClickOnce to create a shortcut on a user's desktop during installation Does anyone know http://lab.msdn.microsoft.com/productfeedback/ ...Show All
SQL Server How to match a Count Measure in Process Partition component in SSIS?
I have a facttable, and it point to a Partition. In Process Partition component in SSIS, it ask to match the columns of the facttable to the Partition's Measures. I try and found all the Measures need to be point, or it will cause a mistake. But the quesiton is , I have a Measure which counts the num of rows. What column of the facttable I need to point to it Thanks. Just to clarify terminology - I think what you're referring to as "Process Partition component" is technically the "Partition Processing Destination" in SSIS. Because a measure with "Count" aggregation uses a "Row Binding", rather than a "Column Binding", you should only need to specify the fact table, a ...Show All
Visual Studio Team System TF doesn't recognize "setnoprompt" command?
I'm trying to use a command file to perform some tasks with TF.exe. Since I want this operation to be interactive I'm trying to use the "setnoprompt false" command listed in the documentation for TF, but when I run my command file I receieve the error " Unrecognized command: setnoprompt ". This is the content of my command file: setnoprompt false merge /recursive /version:C288~C288 $/Test/Dev $/Test/Branch1 When executed the setnoprompt command generates the error mentioned above and the merge command executes without displaying any dialogs (which I don't want since it generates conflicts that needs to be resolved) What am I doing wrong here Hello, unfortunately setnoprompt was removed from TFS RTM ...Show All
