Printing Issue

48 views
Skip to first unread message

James Lorimor

unread,
Oct 23, 2011, 3:39:25 PM10/23/11
to MetaDraw Developers Group
I'm trying to print using MetaDraw 2 with Visual Basic.

I copied the code from the MetaDraw for Winforms document for
printing:

' Print the entire picture to printer chosen by end user
mdrMap.Current = ObjHandle.MainContainer
mdrMap.ExportOptions = ExportFlags.Visible
mdrMap.ExportDC = -2 ' Chosen printer


The only thing I changed is adding the Visible flag. As soon as I
press enter on the last line I get this error message:

Error 3 Overload resolution failed because no accessible 'ExportDC'
accepts this number of arguments.

What am I missing?

James

James Lorimor

unread,
Oct 24, 2011, 12:55:32 PM10/24/11
to MetaDraw Developers Group
I figured it out.

If you use mdrMap.ExportDC(-2), it works the way it's supposed to.

James
Reply all
Reply to author
Forward
0 new messages