Posted - 07/16/2006 : 12:52:51 I am using PrintPreview in VB.Net (VS2005) in a program that I am migrating from VB6. I reference PP by a reference to interop.preview5.dll. The only problem I have is that I can't get the print to file button to show I have the following code ppr.ShowPrintToFile = True ppr.ShowExportList = PrintPreview5.ePreviewExport.prELPDF Or PrintPreview5.ePreviewExport.prELRTF Or PrintPreview5.ePreviewExport.prELText

I have inserted the code just after the call to validate my license. My printer is an HP5900 and I run in WinXP Pro. I have included the rest of the code (minus the validation code)

Since I posted this message I have tried emailing my print as a PDF file. In VS2005 the dialogue box came up as usual but when I tried to send it the dialogue became hidden but I received no confirmation that it had been sent. I tried this in the VB6 version and it worked fine.

3 L A T E S T R E P L I E S (Newest First)

Waty Thierry

Posted - 08/03/2006 : 20:58:07 I suggest to use the DLL instead the OCX.The OCX is just a wrapper arround the DLL, mainy used in some languages that doesn't allow DLL (Powerbuilder...)

Posted - 07/31/2006 : 13:18:47 Hi WatyYes I do have VB6 and VS2005 on the same machine. I point VB6 to program files\mandix\PrintPreview5.dlland .Net to interop.PrintPreview5.dll which I created by adding you ocx as a com object. This creates the interop file in the obj folder of the project.

As my project is rather large (27MB) I have filletted out all but the essential code so that it will run. All it needs is a blank form with a command button. Add the attached click method. When activated it will draw a grid to the PP5.

You will see that the email list has been setup ok but the save to file button does not appear

Waty Thierry

Posted - 07/25/2006 : 13:03:23 Do you have VB6 and VS2005 on the same computer?Maybe some DLL or OCX missing?