Home Image-Pro General Discussions
Options

Is it possible to print my "Measurement Table" directly from Image Pro v10?

I need to print my measurement table which has 500+ results. 
As part of data integrity within my company, I can't use the export to Excel or Text File features.

When I click print only the image prints.

Can I print the data only from Image Pro v10?


See image below showing line measurements and table with results.

Answers

  • Options
    Along3,

    It's not possible to print data table directly, but it's possible to print data from Output window of Image-Pro.
    You can copy data table to Output window using this macro:
        Public Sub CopyDataTableToOutputWindow
            With Measure.Measurements.TableCommands.CopyToClipboard(Nothing)
                .UseStatistics = False
                .Run(ThisApplication.ActiveDocument)
            End With
            ThisApplication.Output.Show
            ThisApplication.Output.Clear
            ThisApplication.Output.PrintMessage(System.Windows.Clipboard.GetText())
        End Sub
    

    And then print it using the Print item from the context menu:


    Yuri
  • Options
    2018-12-20-102549

    Yuri --

    I think your answer it great and shows some good stuff . . . especially the CLIPBOARD stuff.

    I wondered if you could add something like

        ThisApplication.Output.Print

    to your macro to save Along3  the MANUAL PRINT STEP but it looks like THISAPPLICATION.OUTPUT does not support this.

    Along3 --

    Adding
            With Automate.AutomateCommands.OutputCommand(Nothing)
                .Action = MediaCy.Addins.Scripting.OutputCommands.Print
                .Run()
            End With
     to the
      Public Sub CopyDataTableToOutputWindow
    would save the MACRO USER the step of manually PRINTING the OUTPUT WINDOW.

    I hope this suggestion helps.

    -- Matt
Sign In or Register to comment.