MATLAB: Is it possible to print a hard copy of an excel file in matlab

activexexcelprintprintingprinting hard copy

I have an excel file, and I want to print it using matlab. I want to make a gui with a push button that automatically print the excel file, is this possible?

Best Answer

Yes, if you have Windows. You'll use ActiveX and issue the commands to print. The easiest way to do this is to record a macro in Excel, then look at the code it recorded. Then transfer this code to your MATLAB function. I'm attaching an ActiveX demo. It doesn't do printing though - you'll need to blend my code with your printing code.