Printer compatibility library is available now.

If you used to use Printer for printing tasks in VB6 and plan to migrate to VB.NET, it's a good news for you. It only need very minimum of code modification)

http://msdn2.microsoft.com/en-us/vbasic/bb219077.aspx

In most of the cases, only below steps are needed to take.

1. Open the application in Visual Studio.

If a Visual Basic 6.0 application has not yet been upgraded, opening it in Visual Studio will start the Upgrade tool.

2. On the Project menu, click Add Reference.

3. In the Add Reference dialog box, on the .NET tab, click Microsoft.VisualBasic.PowerPacks.Printing.Printer, and then click OK.

4. In the Code Editor, add the following statement at the top of the module that contains your Visual Basic 6.0 Printer code:

Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6

5. Add the following code at the top of the procedure that contains Printer code:

Public Printer As New Printer




Answer this question

Printer compatibility library is available now.

  • Printer compatibility library is available now.