visual-studio-2008

Microsoft Reporting and VS2008: How do I make dynamic "receipt" documents?

Hi all. My program needs to print receipts for some sold products. The program specifically has to work with "thermal printers," those small printers using rolls of paper. I am using Microsoft Reporting and VS2008 to design an .rdlc file, but the number of products may be significantly different and receipts with different heights are n...

Visual Studio Report: Checking how many lines are still available on a page

Hi, I have a report which has a table to which I keep adding records but there is a certain place I want to check how many lines are still left on the print page and if its below a certain amount I want it to continue on the next page. Can anyone please tell me how to check the number of lines left and also how to tell the report to st...

Is it possible to change variables on Visual Studio setup project based on referenced DLL?

I don't want to replace every file when I change some product information like version, product name and author name. A Visual Studio setup project has constant variables like TARGETDIR, SystemFolder and so on. Is it possible to change setup project properties based on a referenced DLL? PS. Can WiX do this? ...

How do I change Outfile name using variable in Visual C++ linker?

In the linker the binary destination is specified as: $(OutDir)\$(ProjectName).exe (example) define method1 1 define method2 5 supposed that method1, method2 is defined in main.h is it possible that output filename will be (method1)_(method2).exe as 1_5.exe ...

How do I change Outfile name using variable in Visual C++ linker?

In the linker the binary destination is specified as: $(OutDir)\$(ProjectName).exe (example) (main.h) (#define method1 1) (#define method2 5) supposed that method1, method2 is defined in main.h is it possible that output filename in the linker will be (method1)_(method2).exe as 1_5.exe ...

OCX Build File Rule?

In my quest to use an OCX file as a resource in my project, I initially started to use Visual Studio C++ Express Edition which easily allowed me to add the OCX file as a resource and view/utilize its functions. However, upon upgrading to Visual Studio 2008, whenever I try to use the OCX file as a resource (in C++ mode) it asks for a bui...

Localized xUnit.net Output in Visual Studio Output Window

Hi folks I am using xUnit.net (1.5, but 1.1 seems to have the same issue) in a Visual Studio 2008 solution (with a simple post build event). The host system (Windows XP) is the localized german version and vs2008 is the english version. The VS output window shows the localized german output like this: 1) IXmlSerializableTest.XmlSerial...

Unix Makefile in Windows Visual Studio 2008

I've done a decent search, but can't seem to find a way to get Visual Studio 2008 to use a unix Makefile, or even to create some MSVC compatible equivalent from the Makefile. Does anyone have ideas or similar issues? Note: I already know the benefits/drawbacks of using Makefiles or not, and I don't want to hear your opinion. All I'm int...

Linking against library in release and .exe in debug crashes in Visual studio

I'm using Visual C++ 2008 SP1. I have an app that is compiled in debug mode, but links against a library in release mode. I'm getting a crash at the start-up of the application. To make the problem smaller, I created a simple solution with 2 projects: lib_release (generates a .lib, in release mode) exec_using_lib_release (genereates a...

Multiple Instances of Firefox and Visual Studio

After upgrading to FF3.5, I noticed Firebug is slower. A lot slower, it is annoying to debug web applications and have to wait 5 seconds to open a tab. After some googling, I got FF3.0 and FF3.5 running side by side, with different profiles. Now I can use GMail, Google Docs, and all the Google Apps we use here at work in FF3.5 (a lot fa...

Settings.settings File Keeps Getting Reset

Hi, When debugging my project in Visual Studio 2008, my Settings.settings file keeps getting reset between builds. Is there a way to prevent this from happening? Thanks. ...

How do I gracefully exit WinForms app when hitting stop debugging in VS?

I'm writing a system tray Winforms app which does some very important cleanup on Application.ApplicationExit. When I hit the stop button while debugging in Visual Studio, this the process exits, but this cleanup code doesn't get called. Is there some way I can make sure it gets called in this situation? ...

Pre-Deployment in Database project

Visual Studio 2008 Database project for SQL Server 2008 The project has placeholders for Pre-Deployment and Post-Deployment SQL scripts. They work - well, most of the time anyways. The project has an option to Always-Recreate-Database: drop the existing database and create a fresh hot-from-the-oven database every time. When I deploy m...

Simplifying publishing multiple ASP.NET Web Site Projects in VS2008

I have a solution in Visual Studio 2008 that contains three projects: a C# Library and two ASP.NET Web Sites (call them A and B). Web Site A depends on the library, and Web Site B depends on Web Site A. This means that if I make a change to the library project, I have to build it, then publish A, and then publish B. Similarly, if I chan...

Visual Studio voice commands

Hey, you know how Iron man was using voice commands for his IDE in the movie? Are there any visual studio plugins that can do that kind of thing? If not, how do you go about making them yourself? ...

Visual Studio 2008 dependency management and custom source files generating C++ files.

We have custom Domain Specific Language (DSL) files in our Visual Studio solutions. We have a code generator that parses these files, and generates C++ code from them at build time (the code generator is implemented in C++ as well, and built in the same solution, in a project that's built earlier in the build process). We have a custom...

Programatically shutdown application before webtest

Hi, does anybody know how can i shutdown web application before each webtest? Thanks ...

What version of Visual Studio 2008 are you using?

Our Web Team is in the process of buying licenses for Visual Studio 2008 (Team System). We are not sure yet if we need the Development Edition or Team Suite. Is it worth paying 5000$ to get the tools not included in the Development Edition: profiling, static analysis, load testing, database testing, etc? I know it depends on your needs...

Use of Specific Version Reference in VS 2008

I have an assembly Foo, which has reference to assembly Bar(Version X.X.X.2000). In the properties, specific version is set to False. I have both Bar(x.x.x.2000) and Bar(x.x.x.1000) in my local GAC. Everything is fine. On another machine, where no version of Bar is in the GAC, but Bar(x.x.x.1000) is located in the same directory as Foo,...

Change Default Winform Icon Across Entire App

Can I change the default icon used on a Winform? Most of my forms have their icon property set to a custom icon. For the few forms that slip through the cracks, I don't want the generic "hey look, he made this in visual studio" icon. One solution is to tediously check every one of my forms to make sure they either have a custom icon s...