Fixed .NET print code