Windows 7 XP Mode Virtual PC Window Not Visible

October 29th, 2009

I had a strange situation with my XP Mode window not showing up (process was running, but no window was visible). After few hours of searching and testing I found out that it’s the “CameraFixer Application” (FixCamera.exe). It came with my too-cheap-to-believe webcam that has no name and nowhere to source the drivers from other than the cd it came with.

Once I removed that “buggy” app XP Mode works perfectly fine.

Hope it may help some one ;)

ASP .NET pdf printing on server side via Web Service

September 17th, 2008

If you’re looking for a way to print a pdf file via IIS ASP .NET web server application or web service in .NET you can try GhostScript + GsView free (GPL license) tools. GsView has a command line tool called GsPrint which can take a pdf file and print it via any defined printer.

Example .NET statement to print pdf (C#):

System.Diagnostics.Process.Start(@”C:\Program Files\Ghostgum\gsview\gsprint.exe”, @”-printer “”hp LaserJet 1010″” “”C:\test.pdf”"”);

MS Word Addin For .NET 1.1 and .NET 2.0 manual/installer

September 17th, 2008

I had lots of issues when trying to deploy simple addin for MS Word 2k3 on fresh machines where there could be .NET 1.1 or .NET 2.0 only.
First of all to install .NET Addin on other machine you have to install Office.dll,stdole.dll and Extensions.dll + dll for addin. You can not register .NET addin with regsvr32 tool. You have to use RegAsm.exe tool from .NET Framework.
Example code from Inno setup which registers addin dll:

regPath := GetEnv('windir' + '\Microsoft.NET\Framework\v2.0.50727\regasm.exe'
if not Exec(regPath,ExpandConstant('/silent /codebase "{app}\WC4Addin_NET20\WC4WordAddin.dll"', '', SW_SHOW, ewWaitUntilTerminated, ErrorCode) then
begin
// handle failure if necessary
MsgBox('Addin Install Failed.', mbInformation, MB_OK);
end;

Also on .NET 2.0 you have to install VSTO 2005 - Tools for office redistribuable otherwise addin will not work!

Welcome in Kris Carewicz software development blog!

September 16th, 2008

Hello,

my name is Kris Carewicz, I’m a freelance developer, currently focused on .NET framework development. As you probably know .NET is very broad technology (contains many technologies for building desktop/web applications). I’ve used .NET in several successful projects and I find it great to build any application very fast and quite easy. Lately I have been reviewing WPF/WCF (.NET 3.0) and Linq (.NET 3.5). Also I’ve been doing some tests with Silverlight 2.0 beta 2 - a very promising web apps technology.

I started this blog because I wanted to share some of my solutions to the development problems which I’m facing. Hope you like me posts and you find it helpful.

Feedback is very welcome.

Regards,

Kris