kanber Posted December 9, 2013 Share Posted December 9, 2013 Hello, I done 7 years before one project. on this project here is 7 PC. One is server and printer is connected to server. 6 PC on different side of the fabric. We change 3 of them with windows 7. Now we have problem with print out. when we print out program sending blank page to printers. there of them have same problem. I tried; from aciton, PrintPage, PrintPreview function and also I tried Printpage("rapor") and PrintPageDirectly("rapor") please help me about this problem.we are always losting a lot of time with print function. ı attached file XP(which is print out correctly on old PC), I tried with 5.90 but there is problem with variables itis all on page top and left side. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 9, 2013 Share Posted December 9, 2013 Printing on some OS's / printers has been a long time problem of DAQFactory which is not easy for us to fix. Your best bet is to use the printPDF() function to print the page to a file, then use system.shellExecute() to trigger the printing of that page through acrobat. So, something like: page.printPDF("myPage", "c:\daqfactory\myFile.pdf", 11, 8.5) System.shellExecute("c:\daqfactory\myFile.pdf", "print") Link to comment Share on other sites More sharing options...
kanber Posted December 10, 2013 Author Share Posted December 10, 2013 page.printPDF("myPage", "c:\daqfactory\myFile.pdf", 11, 8.5) it is ok. System.shellExecute("c:\daqfactory\myFile.pdf", "print") this function not working, Link to comment Share on other sites More sharing options...
AzeoTech Posted December 10, 2013 Share Posted December 10, 2013 Do you have adobe acrobat reader installed? You may have to call it directly: system.shellExecute("c:\program files\adobe\acrobat.exe", "print", "c:\daqfactory\myFile.pdf") adjust the path to acrobat accordingly. Link to comment Share on other sites More sharing options...
kanber Posted December 13, 2013 Author Share Posted December 13, 2013 system.shellExecute("C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe", "open", "c:\myFile.pdf") this is working. but when you write "print" command it is not working. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 17, 2013 Share Posted December 17, 2013 You might try putting /p before the file name: system.shellExecute("C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe", "open", "/p c:\myFile.pdf") Search for acrobat command line switches on the net to see some other options. Link to comment Share on other sites More sharing options...
kanber Posted January 28, 2014 Author Share Posted January 28, 2014 I solved the problem with changing printer. Working printer: Canon ip2702 inkjet Not Working : HP 1280 inkjet for your information, Link to comment Share on other sites More sharing options...
AzeoTech Posted January 28, 2014 Share Posted January 28, 2014 Yes, that has been my general experience. Something about the HP driver doesn't handle scaling. We can make it work consistently, but then the image is like 1" x 1". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.