J
John Dumay
Hi All,
i am trying to cusomise use Stephan Lebans utility that allow me to roint my
report into a Word document (EMF Picture Objects). I have made a refence to
his .MDE database and recomplied the utility to make sure this all works. But
hen I copy the code behind the "Export to File" button to my Database I get
complie errors. First if I leave the following declaration in my from module
Dim pf As clsPrintToFit
I get this Error when compiling.
"User-defined type not defined"
I avoided this Error my declaring as public in my manin DB module but i am
not sure of this is the right thing to do.
Public pf As clsPrintToFit
Next, the complier stops at the call to the export comand;
pf.ExportToMSWord
Here the compiler highlights "pf" and says:
"Variable not defined"
Has any one got this code to work in their DB's and can offer help I would
greatly appreciate it.
Regards,
John Dumay
i am trying to cusomise use Stephan Lebans utility that allow me to roint my
report into a Word document (EMF Picture Objects). I have made a refence to
his .MDE database and recomplied the utility to make sure this all works. But
hen I copy the code behind the "Export to File" button to my Database I get
complie errors. First if I leave the following declaration in my from module
Dim pf As clsPrintToFit
I get this Error when compiling.
"User-defined type not defined"
I avoided this Error my declaring as public in my manin DB module but i am
not sure of this is the right thing to do.
Public pf As clsPrintToFit
Next, the complier stops at the call to the export comand;
pf.ExportToMSWord
Here the compiler highlights "pf" and says:
"Variable not defined"
Has any one got this code to work in their DB's and can offer help I would
greatly appreciate it.
Regards,
John Dumay