主要用到函数说明:
IMxDrawPrint::BatchPrintDialog
批量打印对话框,详细说明如下:
参数 | 说明 |
---|---|
[in] IMxDrawResbuf* pParam |
批量打印位置参数, 是个点数组,数组两个点表示一对,一对代表一个打印区域 |
js代码实现如下:
function BatchPrintDialog() { var pRet =mxOcx.Call("Mx_GetMcDbDatabaseBound", ""); if (pRet.AtString(0) == "Ok") { var pt = mxOcx.NewPoint(); pt.x = pRet.AtDouble(1); pt.y = pRet.AtDouble(2); var param = mxOcx.NewResbuf(); param.AddPoint(pt); pt.x = pRet.AtDouble(3); pt.y = pRet.AtDouble(4); param.AddPoint(pt); var print = mxOcx.NewComObject("IMxDrawPrint"); print.BatchPrintDialog(param); } else { alert("调用失败"); } }
原文:https://www.cnblogs.com/yzy0224/p/11049690.html