This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / How to change the output filename by using rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo %1 %2 %3 %4Hi,
In command line I use rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo "c:\test.bmp" "PrinterName" to covert
c:\test.bmp file into a pdf document by using ADOBE PDF Covnverter printer.
However the default output filename is always "Full page print.pdf", so is there anyway I can change this file name, for eamxple,
I would like the output file name is test.pdf.
-bobo123(bobo);
2006-2-25
{398}
(#2806272@0)
-
你写个bat,先转换,再改个名不就完了。
-holdon(again);
2006-2-25
(#2806413@0)
-
要转化的是多个文件,而且所有的都是要由程序代码控制的,在程序里很难判段当前的打印工作是否完成.
-bobo123(bobo);
2006-2-26
(#2806743@0)
-
在你的程序里设个资源锁?另外"Full page print.pdf"总是在同一目录吗?如果是当前目录,你可以存在不同的子目录里。
-holdon(again);
2006-2-28
(#2812043@0)
-
BAT处理多个文件可能是问题。如果你是做Windows Appplication, 转化完一个文件后,可以用FindWindow的方法来确认打印是否接受,然后发送下一个打印文件命令。
-kaia(打不成瞌睡了);
2006-2-28
(#2811996@0)