MistigriFX - Printer Functions


The MistigriFX - Printer dll gives you access to 4 printing functions for your MetaTrader software which will allow you to print data straight from your mql code to your default printer. To have access to these functions within your code, simply add the following line at the top of your code:

#include < MistigriFX - Printer.mqh >


Current DLL Functions


//+------------------------------------------------------------------+
//| MistigriFX - Printer.mq4 |
//| Copyright c 2008, MistigriFX.com |
//| http://www.MistigriFX.com |
//+------------------------------------------------------------------+
#property copyright "Copyright c 2008, MistigriFX.com"
#property link "http://www.MistigriFX.com"
//+------------------------------------------------------------------+
//| DLL imports |
//+------------------------------------------------------------------+
#import "MistigriFX - Printer.dll"
void PrinterOpen( string FontName, int FontSize );
void PrinterClose();
void PrinterPageEject();
int PrinterWriteLine( string String );
#import


Sample script code


//+---------------------------------------+
//| MistigriFX - Quick Print Test.mq4 |
//| Copyright c 2008, MistigriFX.com |
//+---------------------------------------+
#property copyright "Copyright c 2008, MistigriFX.com"
#property link "www.mistigrifx.com"
#include < Mistigri - Printer.mqh >
//+---------------------------------------+
int start()
{
PrinterOpen( "Arial" , 12 );
PrinterWriteLine( " " );
PrinterWriteLine( " INTERBANK FX MT4 " );
PrinterWriteLine( " We offer trading support via the Internet or over the phone. " );
PrinterWriteLine( " Sunday at 5:00pm EST to Friday at 5:00pm EST." );
PrinterWriteLine( " Toll Free in the US: 1.866.468.3739");
PrinterWriteLine( " Account Number : " + AccountNumber() );
PrinterWriteLine( " PLACING A SELL MARKET ORDER OF " + DoubleToStr( Lots, 2 ) + " LOTS on " + Symbol() + " at the Bid." );
PrinterWriteLine( " " );
PrinterPageEject();
PrinterClose();
return(0);
};
+-------------------------------------------------------------------------------+