1
Vote

Problem in declaration

description

Hi,
I really enjoy the simplicity of your work.
This is exactly what I was looking for. Just simple print a pdf file to a selected printer.
The only problem is that VS 2005 is returning an error by the minute I'm trying to initialize
 
Dim objPrint As New DocumentPrinter.
 
The error is returning is "Object reference not set to an instance of a project"
 
Any ideas..?!

comments

tenkyu wrote Sep 20, 2010 at 7:36 PM

Have you ever try to debug the source code, i am using VS2008 but getting no error.

wrote Sep 20, 2010 at 8:31 PM

PapaioannouG wrote Sep 21, 2010 at 9:28 AM

No... I don't have C# installed on my computer
I'm using VB. Have you tried to use it in VB..?

tenkyu wrote Sep 21, 2010 at 7:13 PM

I just added the ConsoleDemoVB Project and it works fine too.
I think you have an error on construtuctor(Reading registery keys), and added the try catch mechanism to registry reading, can you download latest version, and test it again?

wrote Feb 13, 2013 at 2:11 AM