//**********************************************
// Filename:	GraphExp.OGS
// Creation:	8/5/00 by CPY
// Copyright (c) OriginLab Corporation 1992-2000
// Purpose:	Graph Page Graph export scripts
//**********************************************
// Modification Log:
// CPY v6.1018 8/4/00 MOVE_EXPORT_PAGE_TO_GRAPHEXP, moved codes here from file.ogs
/// ML 10/12/2006 EXPORT_GRAPH_XF
/// Max 10/25/07 QA70-10581 LANGUAGE_SWITCH_CRASH_IN_J_LEAD_TO_NEW_LT_WAY_TO_RUN_XF

///////////////////////////////////////////////////////////////////////////////
[ExportPage]
	//---- CPY 9/29/06 EPRINT_PDF_EXPORT
	if(exist(%H,2)==2)
	{	/// Max 10/26/07 bracket is needed since "run -xf" might be not one line code
		/// Max 10/25/07 QA70-10581 LANGUAGE_SWITCH_CRASH_IN_J_LEAD_TO_NEW_LT_WAY_TO_RUN_XF
		//expPDF; //expWorksheet; //DSC 10/12/06 xf name changed from wexport to expWorksheet to expPDF
		run -xf expPDF;
		/// END LANGUAGE_SWITCH_CRASH_IN_J_LEAD_TO_NEW_LT_WAY_TO_RUN_XF
	}
	else
	{	/// Max 10/26/07 bracket is needed since "run -xf" might be not one line code
	//----
	/// ML 10/12/2006 EXPORT_GRAPH_XF
	//ExportActiveGraphPageToImage();
		/// Max 10/25/07 QA70-10581 LANGUAGE_SWITCH_CRASH_IN_J_LEAD_TO_NEW_LT_WAY_TO_RUN_XF
		//expGraph -d;
		run -xf expGraph -d;
		/// END LANGUAGE_SWITCH_CRASH_IN_J_LEAD_TO_NEW_LT_WAY_TO_RUN_XF
	/// end EXPORT_GRAPH_XF
	}
////////////////////////////////////////////////////////////////////////////////////////////
