Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Re: [MBS] Print PDF (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Searchfield in Toolbar - continued
Next thread: [MBS] [ANN] Real Studio Meetings in Germany


Re: [MBS] Print PDF   -   Paxdo

Re: [MBS] Print PDF
Date: 09.04.13 15:42 (Tue, 09 Apr 2013 16:42:38 +0200)
From: Paxdo

Hello,

I have not found a solution to the problem below. :-(
Someone has a solution? It is important to me.

Here's the problem: automatically print a PDF file to the printer of our choice (Windows).

I have a Windows application that automatically prints *PDF* files on specialized printers. Depending on the file to print, the print job is sent to the printer 1 or 2.

For example, four files are sent to the printer 1 and six files to the printer 2.

I used the example "MBS create and print pdf", but it does not work.

This example works fine with a single printer, but it is more difficult with several printers, as well as Adobe Reader checks the default printer only when it starts.

Or printing is always sent to the same printer or Adobe Reader is displayed in front of my application. :-(

Thank you
Greetings

Olivier

Le 26 janv. 2013 à 14:15, Paxdo Presse <<email address removed>> a écrit :

>
> Hi,
>
> I also tried to use the AppWinStyle constants to hide Adobe Reader, but it does not work well:
>
> http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.appwinstyle.aspx
>
> it looks something like this:
>
> "C:Program FilesAdobeReader 10.0ReaderAcroRd32.exe" /h /p /1 "C:UsersPosAppDatammT23_10080113.pdf" ,1
>
> The file prints, but Abobe opens with an error message "File Not Found".
>
> any ideas? I do not know anything about the shell. :-(
>
> thank you
>
> olivier
>
>
>
>
> Le 10 oct. 2012 à 21:53, Paxdo Presse <<email address removed>> a écrit :
>
>>
>> Le 10 oct. 2012 à 18:01, Christian Schmitz <<email address removed>> a écrit :
>>>>
>>>
>>> DynaPDFPrintSettingsMBS does not specify a printer name.
>>>
>>>
>>> For Adobe reader, I found this hint for the command line options:
>>>
>>> /t <filename> <printername> <drivername> <portname>
>>>
>>> Maybe you try that? You may need to put printer name in quotes.
>>
>>
>> Thank you Christian.
>>
>> I did many tests. Indeed, with the parameter "/ t" and the name of the printer, we can print to the printer that we want. :-)
>> But, from the second printing, Acrobat window is displayed above the application. :-(
>>
>> If you do not use the "/ t", it is not possible to select a printer. But if you use "/ t", parameters "/ h / p" no longer work, Acrobat can not be effectively hidden.
>>
>> Someone has a solution? Maybe a printer setting could be integrated into dynapdf?
>>
>> olivier
>>
>> some more info:
>>
>> http://stackoverflow.com/questions/4868982/c-sharp-printing-a-pdf-silently-with-adobe-acrobat
>> http://stackoverflow.com/questions/9619453/launching-acrobat-reader-10-0-from-c-how-to-minimize

Am 10.10.2012 um 11:55 schrieb Paxdo Presse <<email address removed>>:

>>> In the "Create and Print pdf" example, on Windows, the shell.Execute s+" /h /p """+f.AbsolutePath+"""" command is used to Run Adobe Reader.
>>>
>>> Is there also a possibility to change the printer used by Adobe Reader?
>>> I tried with the WindowsPrinterMBS.SetDefaultPrinter method, but it does not work: Adobe Reader defines the default printer only when starting the Reader application. Also, I have not seen a change printer settings in DynaPDFPrintSettingsMBS.
>>>
>>> In industrial or commercial, we sometimes need to quickly print on a printer selected according to the type of document to print, without the print dialog.

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info