PinoyDev -3 Posting Whiz in Training

Good day!

I want to save the data report with the .mdi(microsoft document imaging printer viewer) on a specidied folder..

'Print to a Specified nondefault printer

Dim PrintData As Printer
Dim defprinterpos As Integer
Dim currentPrinter As String

For Each PrintData In Printers
    If PrintData.DeviceName = Printer.DeviceName Then
        currentPrinter = Printer.DeviceName
    End If
Next

Dim DefaultPrinter As String
DefaultPrinter = "Microsoft Office Document Image Writer"
SetDefaultPrinter DefaultPrinter
DataReport1.PrintReport 'instead of printing here..I need to save the datareport to a folder instead

SetDefaultPrinter currentPrinter

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.