fastzap's Q&A profile
Visual Studio LocalReport Export graph in Pdf
I use LocalReport for generate export in Excel et pdf with Framework V2.0.50727. When RDL contain graph ( bar or pie) the size of file ( render) in pdf is 16Mo. In excel is OK ( 41ko) or with no graph in pdf (89 ko) Parameter DeviceInfo is a empty string. any idea One problem seems to be the embedded images. I have two external images (tried every format) and the compression seems to be removed after rendering the report. Please make a quick fix for this, I don't want to use another report rendering solution when I finanlly got the hang of this. ...Show All
Visual Basic a simple I/O Question
Please provide me with a sample on how to read the content of a word document ".doc". i can read any textfile ".txt" using the "streamreader" for example, but when i try to read a .doc it gives me nonreadable output. regards, Try using the BinaryReader instead. Have not verified the code below works, but you get the idea. Dim fs as New FileStream("YOUR DOC") Dim br as New BinaryReader(fs) If br.PeekChar() != -1 Then Dim byt as Byte() Dim i as Integer byt = br.ReadBytes(CType(fs.Length, Integer)) fs.close() br.close() End If http://groups.google.c ...Show All
Visual Studio Team System Install Issue: Unable to install TFS as SharePoint is not configured correctly..
hi all, Hope someone can point me right on this one. I have been trying to install TFS and have not had much luck. When I go to install the TFS from the setup.exe I choose to Install the server and then select a single machine install.. then I get the following in the pre-req screen that pops up: "Windows Sharepoint is not configured as recommended by Team Foundation Server" You have the option of Continue (which sends you back to the initial menu) or to exit setup. How do I find out what is not configured as recommended I can't see any logging anywhere and SharePoint seems to be working OK (http://localhost/default.aspx) on the machine ...Show All
SQL Server Re-do replication for new release
We alter the database schema that our production application uses with almost every release. Is there a way to basically remove the replication and re-do it for all tables / views at one time Then we could just "rebuild" the replication with every release. We have about 200 tables and 200 views that have many dependencies. I'm sure it could be done with scripting and the stored procedures, but I'm new at this and not sure where to start. Any ideas Thanks! Yes, you could script out all the replication settings (publication, articles, jobs, subscriptions, etc) using ...Show All
Visual Basic Sending messages to either console or windows frontends.
I have a program that can be run with a GUI or automated with a console. They both do exactly the same thing, just the console takes command line args while the form part takes user input with buttons and junk. They both (or soon will) run some tests and both use a class that I built that keeps track of the tests. Now what I want to do is inside that class, send messages with important information like the status, if anything fails, whatever. I want the console application to write that info to the console and I want the forms version to display it in a prompt of some sort, (I haven't quite figured out how I want to do that bit yet) I was ...Show All
Visual Studio Team System Beta3 to B3R physical server migration
Wow. I'm so excited to see this stuff going "live". We've got TFS Beta3 running with 1 project. Now that the refresh is coming, we definately want to upgrade and I've seen the migration guide; doesn't look too bad. However, what would be involved if we wanted to migrate to new physical hardware at the same time When we first installed TFS it wasn't on the best of hardware, and now that we can't live without it, I'd like to give it some respectable equipment. Would I just migrate Sharepoint, then restore the SQL 2005 databases (and all the other steps mentioned) Michael, I haven't tried this, but one way I ...Show All
Visual C# How to get the Last Month from System.Date ??
Hello Everyone, I'm using the System.DateTime curr = DateTime.Now; this gives me todays date...As today is 22nd Feb, 2006.....From this date if we want to get last month how we get it.... I want something that can give me 1/1/2006 -- 1/31/2006 (mm/dd/yyyy) Secondly, how can I say get this month or this quarter.. Say this month -- 2/1/2006 -- 2/28/2006 (mm/dd/yyyy) This Quarter -- 1/1/2006 -- 3/31/2006 (mm/dd/yyyy) If you can give me some code snippet how to do it.... Thanks, Harsimrat You can create a new date using the current month - 1. The month property is a number, so you can ...Show All
Visual Studio Team System Types with disposable fields should be disposable
CriticalError, Certainty 95, for TypesThatOwnDisposableFieldsShouldBeDisposable Fxcop says that my class (PrintText) which instantiates an IDisposable type (Font) should also implement IDisposable. The documentation goes on to say that I should not exclude a message from this rule. My PrintText class is just a way to encapsulate a particular usage of PrintDocument. I need a font for what I am doing. I instantiate it in PrintText.Print, and I dispose it in the PrintDocument.PrintPage event handler. My font object is a property of the class only because two methods in the class use it. So, Fxcop is complaining (sternly) about some ...Show All
Visual Studio Tools for Office Open and Modify Word Document from C# .NET 1.1
I'm trying to open a Word document from a VSTO project using C# in VS 2003. When I attempt to launch a copy of Word, I get an "Access is denied" error. This project works great if you manually open the Word document specified for it, but if you try to launch Word and open the document from C#, it's a no-go. So what am I doing wrong All help is appreciated. Thanks. Could you post the code that you are using to open the word document and the call stack and exception information you get when this fails. You may also find this page useful. http://msdn.microsoft.com/library/default. ...Show All
Visual C++ Read from Big Text file.
Hi. this is my code for Reading from a text file.(file size is 1kb) if my txt file was more than 1MB, how could I read it (I don't know about Memory management.) thanks. //---- #define BUFFERSOZE 1024 //--- //-- - void CMyClass::Open_ReadFile(CStirng strFileName) { char Buffer[BUFFERSIZE]; Buffer[0] = '\0'; CString strErr = "Can't Open " + strFileName; HANDLE hfile = CreateFile(strFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTI ...Show All
Software Development for Windows Vista Link error PlayWndASF MicroSoft Sample
Hi all: I can't complie the sample for this error. LINK : fatal error LNK1104: cannot open file "D:\Program.obj" Error executing link.exe. D:\ is the directory which include DX90SDK and VS,VC6.0. Why Program.obj is needed Thank you. It looks like you are missing quote marks somewhere. That's probably supposed to be "c:\program files\something" ...Show All
Visual Basic Saving Image as jpg with particular size into access database
I want to save image from picture box into access database with size of 400x300, regardless of whatever the original size of picture in the picture box. 1). For example The Picture may be Desk or Chair. Chair size may be 50x75 varias Desk size might be 400x300. The rest area of Chair picture should be saved as transparent or white space into the database. So when we retreive the picture it won't be distorted. Can anyone help me to solve this problem please . Following is the code which I'm using to save picture into access databse Private Sub cmdSave_Click( ByVal sender As System.Object, ByVal e As Syste ...Show All
Visual C# How in the world?
I have a text file that I am reading that looks like this: "2002", "1", "500", "2003", "1", "501", "2001", "1", "500", "2000", "1", "503", "2001", "2", "500", "2000", "2", "540", "2003", "2", "550", "2002", "2", "523", The first column is 'year', the second is 'internal/external (1 means internal, 2 means external)', and the third is 'amount'. I want to use these numbers to make a report that looks like the following: Year: Internal &nb ...Show All
Visual Studio Express Editions Trouble setting up SQL Database from within Visual Basic Express 2005
Hello people. I've been experiencing some difficulty in setting up a new MS SQL Express database in a Visual Basic Express 2005 project. When I go to the solution explorer and click on "New Item" it opens the dialogue to add "New SQL Database". No problem. I click this and choose my database name. However, it then freezes for a while and comes back with a timeout error. After this it tries to open the DataSource Configuration Wizard but this doesn't open properly and instead comes back with a timeout error saying: "an error occurred while retrieving the information from the database - the timeout period elapsed prior to the complet ...Show All
Windows Forms Allow Click Once Deployment only for registered Users
I want to deploy a application by Click Once Deployment. But only users I give a password should be able to install the software. So I thought about protecting the URL with IIS access rights. But how will then work updating the software. I guess the user will have to type in his password every time the application checks for new updates Has anybody already experiences with such a scenario and can explain his experiences I believe I remember reading somewhere that this is only possible if you use Windows Integrated Authentication. In that case, the user may have to re-enter credentials when updating, but W ...Show All
