Tammt's Q&A profile
SharePoint Products and Technologies Document Library Disable Download
Hi everyone, What I need to do is permit users just read and print documents of a document library but under not circumstances download them or save them. Is there any way in a document library to disable the download option. Is that enough to prevent them from saving the documents. I can hide the toolbar but download is still available. I was thinking of implementing RMS to cope with that but I first want to know if that can be achieved within Sharepoint. Thanks a lot, Once the document is opened in SharePoint (even just to read it) you loose control of what happens to it. Information Rights Management is the only way I know of to protect the documents to the level that you wish. ...Show All
Visual Basic creating properties
I have jsut created a set of user controls for use in my application. They do everything excellent, but I want to create a property that allows me to know when an even happens. Here is what I have: in user control 1 12 numeric up down objects 12 text boxes in user control 2 178 text boxes in UC1, when I change the value in a numeric up down, it uses a calculation to create a modifier value. I have created a read only property in the code to pass the modifier value to the application, this works perfectly. in UC2, I have created properties that allow me to pass information into UC2 from the application. This work perfectly in my application, I use UC1's properties to bring the mod value into UC2's texboxes. The problem I am running into is ...Show All
Software Development for Windows Vista problem in compiling the video capture sample provided in the SDK
hi all, I am tried to build (in vc++) the video capture code provided in the SDK which is giving the error C2065: 'ICaptureGraphBuilder2' : undeclared identifier I have included the library strmiids.lib and dshow header file which is neccessary for it. I don't what else i have to do. Any help is appreciated thanks Hi Lovlysath, Just want to ask whether you have solved the problem with your program. I think I am experiencing the same problems, but mines is caused by unable to initializing capturegraphfilter. I get a runtime error on the line pBuild->SetFiltergraph(pGraph); Chee chee_chungc@hotmail.com ...Show All
Visual Studio 2008 (Pre-release) Only letters and numbers in a TextBox
Hi all, I have a TextBox in which I want the user to enter only letters and numbers. How do I go about this Cheerio, Frances Hi, Check for Ascii Values , while user presses the keys, Allow only 97-122 for (a to z) 8 for Backspace 32 for SpaceBar 48 to 57 for Numbers 0 to 9 and 65 to 90 for (A to Z ) Thnx Sidheshwar N ...Show All
Visual C# Extracting OLE Object from MS Access
Hello, I'm using MS Access as database back-end for my C# application and I have an OLE Object field in my MS Access Database and I want to extract the content (say JPG image) to the users' desktop. I'm using OleDB and C#.NET 2.0. How can I do that Thanks. Hi, Currently I am also facing the same issue. However, in my case, the Ole object field can contain any file: Word, Exce, Jpeg, Bmp, Gif, html, etc. Morever, the solution provided above is not working for me. I get the "Parameter not valid error" while initializing the Bitmap object. Thanks in advance for any help. Cheers, Narinder ...Show All
.NET Development Enterprise Library, Data Access Application Block (DAAB), Best Practices Question
Hi, From an architectural perspective is it best to use the DatabaseFactory.CreateDatabase() method once at the top of a method call stack, and pass its reference to each method in the stack that needs database access, or should each method in the data-layer use the DatabaseFactory.CreateDatabase() method internally. Clearly the first approach uses less resources, as quite a lot of code is utilised by the DatabaseFactory.CreateDatabase() method, including reading the web.config file, however the second approach keeps the Data Layer tightly cohesive and loosely coupled from other sections. For example let’s examine a web service solution. Assuming that the service document has a web method, which in-turn calls a business facade. The fa ...Show All
SQL Server Multi-line subtotal
Hi guys! I have a problem... I need to create matrix report with 2 total rows... It should looks like: User Name Col1 Col2 Col3 Total User1 2 3 2 7 0   ...Show All
Visual Studio Team System Logon to TFS
Our Team Foundation Server is set up to join an Active Directory domain so that users need only log on to the domain once. Recently, one of our developers changed her domain password as required. But since then, she is prompted to log on to TFS everytime she starts up Visual Studio 2005. Is this expected Is there a way around it She has restarted her PC several times. In fact, the password change occurred a week ago and she shuts down her PC on a daily basis. So we have eliminated the usual "suspects". ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotate and translate
It must be late or something because I can't get something pretty trivial to work. I'm getting input from the XBox controller...specifically the right joystick. Any Y movement is supposed to make my model move along the Z axis. Any X movement causes the model to rotate around the Y axis. Simple enough. When I move the joystick directly forward the model moves...if I move the joystick directly to the side the model rotates. When I move the joystick diagonally thus getting input from both the X and the Y axis the model does not both translate and rotate. It doesn't do much of anything. Heres my code.... if (state.ThumbSticks.Right.Y != 0) { Vector3 newPosition = new Vector3 (); newPosition.X = hm.Model.Bones[ " ...Show All
Visual Studio Team System TFS Fills up disk?
Not sure if anyone else has seen this issue. Didn't have a chance to reproduct, but I think TFS source control will dump at certain intervals if you have a deleted SID in one of your security groups that could be used. Our disk/temp directory kept getting filled, the event log mentioned something about an invalid id, I had to search through all the groups to find it and remove it. Anyone else seen this Seems like this is something where it should not dump just because of an old deleted SID. I looked I didn't see any reports unfortunately Any other place info would be kept Not able to repro there ...Show All
.NET Development SerialPort
I’m develping an application to send SMS using a celular phone as modem. Everything works perfect, the problem is when a I try to send a message , with a length over 130 . The limit for the SMS is 160 . Raise an excpetion in the command : sp.WriteLine(comando); In spanish it said "Uno de los dispositivos vinculados al sistema no funciona.", "The device don't work " or something similar. If the variable comando has a length of 255 (130 + other internal data) , it works. If it has a length of 257 (131 + other internal data) , raise the exception. If I send the variable to a log file, and then use that string in the Hyperterminal, it works perfect . What’s the problem Thank you, and sorry by ...Show All
Visual C# Converting a string to int
I'am building a console program and need to convert a string that the user types to an int. If I use convert.ToInt32 a get the ascii code for the number but not the number it self. can anyone help me find a easy way to do this, if there is one :) hi Damon the input for my program can be something like this 1-9 7-9 So my problem is that I need to find just the charcters that are actual numbers and use the in my program the code I use to do this looks like this: for ( int i = 0; i < str1.Length; i++) { if ( Char .IsDigit(str1,i)) { int a = Convert .ToInt32(str1 ); Console .WriteLine(a); } } put this code returns 57 if the number 9 is in the string. I use Console.ReadLine() to re ...Show All
Visual Basic combobox.selectedvalue
combobox selected value : FIRMALAR FIRMALARKODU automatik add " FIRMALARKODU ". FIS_BASLIGI FB example 1: D00001. HESAP_PLANI , D00001. FIS_BASLIGI example 2: D00005. HESAP_PLANI, D00005. FIS_BASLIGI vs.. System.Data.SqlClient Public Class Form1 Dim cn As New SqlConnection( "Server=.;Database=prest;User ID=sa;Password=;Trusted_Connection=False;" ) Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim da As New SqlDataAdapter( "select * from D00000.FIRMALAR" , cn) Dim ds As New DataSet da.Fill(ds, "D00000.FIRMALAR" ) ComboBox1.DataSource = ds.Tables( "D00000.FIRMALAR" ) ComboBox1.ValueMembe ...Show All
Visual Studio Express Editions Saving Information
Hello, I a making a program that will be opened once a day probably and some information will be imputed. How can I save the informaition to be used at a later date. I basically need to use something that is like a variable accept that the variable will be saved and after the program is closed and opened again it can be used. thanks Average Joe Hi, What is something strange. When I needed to code to save a users form settings I searched MS and the above method was used. I have just copied the above code to a new project and tested using numeric values and it works fine. It works for me, however, there is no right or wrong way to write code, but there may be a more efficient way. ...Show All
.NET Development The partner transaction manager has disabled its support for remote/network transactions
Hi People, I developed a .net 2.0 windows applications using TransactionScope. Client applications access a MSDE database on server via LAN. The program works fine when I tested on my own computer where database is on the same machine. But when I deployed database to the server, I got a message "The partner transaction manager has disabled its support for remote/network transactions Exception from HRESULT: 0x8004D025". I did some google search and tried to turn on the network access checkboxes in component services on the server, but problem persists. Can anyone help Thanks. Eric Hi Eric, Thanks for your help. But I get another error: "The transaction has already been implic ...Show All
