Print Catalog Items
-
- Posts: 188
- Joined: 04 Feb 2008 20:17
Print Catalog Items
Wondering if anyone has a script they can share that can do this?
Re: Print Catalog Items
This should work:
for more information:
Code: Select all
text catalogreport("{Caption}","- {Caption}: {Location}");
Code: Select all
help "idh_scripting_comref.htm#idh_sc_catalogreport";
Re: Print Catalog Items
Does "Print" mean output to the display / send to a printer?
If the second one is true, something like this could work...
If the second one is true, something like this could work...
Code: Select all
$report = catalogreport("Category: {Caption}", " {Caption}, {Location}");
if ($report) {
$printers = runret("wmic path win32_printer get name /format:list");
$printers = replace(regexmatches($printers, "Name=.*?$", "|"), "Name=");
$printer = quote(popupmenu($printers, -1, -1, , , 0, "|"));
if ($printer) {
setting "BackgroundFileOps", 0;
$file = "%TEMP%\~report.txt";
writefile($file, $report);
run "rundll32.exe %SYSTEMROOT%\System32\shimgvw.dll,ImageView_PrintTo /pt ""$file"" $printer", "<curpath>", 0, 0;
delete 0, 0, $file;
}
}
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 188
- Joined: 04 Feb 2008 20:17
Re: Print Catalog Items
Many thanks guys, I will work with those!
Was just looking for output to screen but since I have a PDF print driver that would work as well
Was just looking for output to screen but since I have a PDF print driver that would work as well