几何尺寸与公差论坛

 找回密码
 注册
查看: 814|回复: 0

【转帖】edrawings active x - printing muliple pages

[复制链接]
发表于 2009-4-12 20:48:29 | 显示全部楼层 |阅读模式
edrawings active x - printing muliple pages
hello all,
i have a vb.net application i have written to open drawings using the api and then print them to my default printer which is a tif printer.
everything is working fine except when i have a drawing that has multiple pages. it will open the drawing and just print the first page and ignore the rest of the pages in the file.
if i open the same drawing with the edrawings program and print it, i have the option to select "all" to get all the pages. by selecting "all" it will print all the pages.
i need this to print all the pages using the api calls.
can anyone help with this issue?
regards,
travis
try these codes..
***********
sub main()
dim retval as string
set swapp = application.sldworks
set swmodel = swapp.activedoc
if swmodel is nothing then msgbox "no document loaded!", vbcritical: end
if swmodel.gettype = swdocdrawing then
retval = swmodel.printout2(0, 0, 1, false, 0, 0, false, 0)
end if
end sub
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 06:14 , Processed in 0.035668 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表