Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2955 > unrolled thread
| Started by | "Bernhard Mayer" <Idonotexist@nowhere.com> |
|---|---|
| First post | 2012-02-16 08:17 +0100 |
| Last post | 2012-02-18 14:06 +0100 |
| Articles | 15 — 9 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
OT: Print a PDF "Bernhard Mayer" <Idonotexist@nowhere.com> - 2012-02-16 08:17 +0100
Re: OT: Print a PDF E®!k \\/!$$E® <nospam@nospam.url> - 2012-02-16 10:00 +0100
Re: Print a PDF "Bernhard Mayer" <Idonotexist@nowhere.com> - 2012-02-16 11:50 +0100
Re: OT: Print a PDF mot <martoiv@utu.fi> - 2012-02-16 06:49 -0800
Re: Print a PDF "Bernhard Mayer" <Idonotexist@nowhere.com> - 2012-02-17 07:45 +0100
Re: Print a PDF Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-02-17 09:41 +0100
Re: OT: Print a PDF "Jamal" <vodotnet_nospam@yahoo.com> - 2012-02-16 10:55 -0500
Re: Print a PDF "Bernhard Mayer" <Idonotexist@nowhere.com> - 2012-02-17 07:48 +0100
Re: Print a PDF "Jamal" <vodotnet_nospam@yahoo.com> - 2012-02-17 09:35 -0500
Re: Print a PDF Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-02-17 17:17 +0100
Re: Print a PDF "Jamal" <vodotnet_nospam@yahoo.com> - 2012-02-17 16:54 -0500
Re: Print a PDF "richard.townsendrose" <richard.townsendrose@gmail.com> - 2012-02-18 02:27 -0800
Re: OT: Print a PDF D.J.W. van Kooten <public@ic2remove.this.com> - 2012-02-16 16:58 +0100
Re: Print a PDF "Michael Hagl" <haglmi@hagl.de> - 2012-02-17 17:07 +0100
Re: OT: Print a PDF "Francesco F." <francescangeli.f@gmail.com> - 2012-02-18 14:06 +0100
| From | "Bernhard Mayer" <Idonotexist@nowhere.com> |
|---|---|
| Date | 2012-02-16 08:17 +0100 |
| Subject | OT: Print a PDF |
| Message-ID | <4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at> |
Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [next] | [standalone]
| From | E®!k \\/!$$E® <nospam@nospam.url> |
|---|---|
| Date | 2012-02-16 10:00 +0100 |
| Message-ID | <9q3usiFrrgU1@mid.individual.net> |
| In reply to | #2955 |
Bernhard, Google on "ShellExecute print pdf" will give you some directions. hth Erik "Bernhard Mayer" schreef in bericht news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [prev] | [next] | [standalone]
| From | "Bernhard Mayer" <Idonotexist@nowhere.com> |
|---|---|
| Date | 2012-02-16 11:50 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <4f3cdfd0$0$1587$91cee783@newsreader04.highway.telekom.at> |
| In reply to | #2956 |
Hi Erik, already did that before. So far I could not find anything with printer tray selection, simply a printer selection is not the problem with the "printto" verb. BR, Bernhard "E®!k \/!$$E®" schrieb im Newsbeitrag news:9q3usiFrrgU1@mid.individual.net... Bernhard, Google on "ShellExecute print pdf" will give you some directions. hth Erik "Bernhard Mayer" schreef in bericht news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [prev] | [next] | [standalone]
| From | mot <martoiv@utu.fi> |
|---|---|
| Date | 2012-02-16 06:49 -0800 |
| Message-ID | <a9d0dc7c-94bc-4549-b2ad-dc1f12180aa1@m2g2000vbc.googlegroups.com> |
| In reply to | #2955 |
Could you not use the PtrDevice Class and its methods. They seem to include the paper tray selection etc. Then you have to first create the pdf with e.g. pdfcreator, bullzip etc and then hand it over to the real printer. mot
[toc] | [prev] | [next] | [standalone]
| From | "Bernhard Mayer" <Idonotexist@nowhere.com> |
|---|---|
| Date | 2012-02-17 07:45 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <4f3df7df$0$18699$91cee783@newsreader03.highway.telekom.at> |
| In reply to | #2959 |
I know how to use the PtrDevice class in order to get/set tray selection but how does this help me with PDFs? AFAIK ReportPro cannot open/print PDFs. BR, Bernhard "mot" schrieb im Newsbeitrag news:a9d0dc7c-94bc-4549-b2ad-dc1f12180aa1@m2g2000vbc.googlegroups.com... Could you not use the PtrDevice Class and its methods. They seem to include the paper tray selection etc. Then you have to first create the pdf with e.g. pdfcreator, bullzip etc and then hand it over to the real printer. mot
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-02-17 09:41 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <hg4sj7dejf8vn8q9e333g7bnpt60cj2o0d@4ax.com> |
| In reply to | #2965 |
Bernhard, >I know how to use the PtrDevice class in order to get/set tray selection but >how does this help me with PDFs? AFAIK ReportPro cannot open/print PDFs. no RP. Use PDF-XChange Viewer (free) to print the file to the ptr-device. Karl
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2012-02-16 10:55 -0500 |
| Message-ID | <jhj8t8$7op$1@dont-email.me> |
| In reply to | #2955 |
Are you using ReportPro 3.0? Jamal "Bernhard Mayer" wrote in message news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [prev] | [next] | [standalone]
| From | "Bernhard Mayer" <Idonotexist@nowhere.com> |
|---|---|
| Date | 2012-02-17 07:48 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <4f3df88e$0$1577$91cee783@newsreader04.highway.telekom.at> |
| In reply to | #2963 |
Hello Jamal, no, I'm using the 2.x version. Nevertheless, AFAIK ReportPro cannot open existing PDFs and print them. BR, Bernhard "Jamal" schrieb im Newsbeitrag news:jhj8t8$7op$1@dont-email.me... Are you using ReportPro 3.0? Jamal "Bernhard Mayer" wrote in message news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2012-02-17 09:35 -0500 |
| Subject | Re: Print a PDF |
| Message-ID | <jhlokk$3i5$1@dont-email.me> |
| In reply to | #2966 |
Bernard, In RP 3.0, I print to freeBullzip PDF printer and can direct to Bin Tray using RP functions. May RP 2.0 has similar functions. RP 3.0 code: oReport:SetSectionIntAttribute(1, SECTION_ATTR_PAPER_BIN, dwPrintTray) // select paper tray If you have BullZip, it has an option to open the PDF after creation. HTH, Jamal "Bernhard Mayer" wrote in message news:4f3df88e$0$1577$91cee783@newsreader04.highway.telekom.at... Hello Jamal, no, I'm using the 2.x version. Nevertheless, AFAIK ReportPro cannot open existing PDFs and print them. BR, Bernhard "Jamal" schrieb im Newsbeitrag news:jhj8t8$7op$1@dont-email.me... Are you using ReportPro 3.0? Jamal "Bernhard Mayer" wrote in message news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... Dear fellow VO'ers! Does anyone know how to print a PDF to a specified printer on a specified printer tray? So far I could not find any freeware solution, it should be possible to trigger the print from VO or C#. TIA, Bernhard
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-02-17 17:17 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <a9vsj757kcmhdukskkei8lnsive6mvills@4ax.com> |
| In reply to | #2970 |
Jamal, if i understood Bernhard correctly, the PDF is already "ready", that's why i didn't recommend Bullzip PDF - BTW, IMO a really tremendous tool... Karl >Bernard, > > >In RP 3.0, I print to freeBullzip PDF printer and can direct to Bin Tray >using RP functions. May RP 2.0 has similar functions. > >RP 3.0 code: >oReport:SetSectionIntAttribute(1, SECTION_ATTR_PAPER_BIN, dwPrintTray) // >select paper tray > >If you have BullZip, it has an option to open the PDF after creation. > >HTH, >Jamal > >"Bernhard Mayer" wrote in message >news:4f3df88e$0$1577$91cee783@newsreader04.highway.telekom.at... > >Hello Jamal, > >no, I'm using the 2.x version. Nevertheless, AFAIK ReportPro cannot open >existing PDFs and print them. > >BR, >Bernhard > >"Jamal" schrieb im Newsbeitrag news:jhj8t8$7op$1@dont-email.me... > >Are you using ReportPro 3.0? > >Jamal > >"Bernhard Mayer" wrote in message >news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... > >Dear fellow VO'ers! > >Does anyone know how to print a PDF to a specified printer on a specified >printer tray? So far I could not find any freeware solution, it should be >possible to trigger the print from VO or C#. > >TIA, >Bernhard
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2012-02-17 16:54 -0500 |
| Subject | Re: Print a PDF |
| Message-ID | <jhmib1$4og$1@dont-email.me> |
| In reply to | #2973 |
Karl, Yes, I see. Jamal "Karl Faller" wrote in message news:a9vsj757kcmhdukskkei8lnsive6mvills@4ax.com... Jamal, if i understood Bernhard correctly, the PDF is already "ready", that's why i didn't recommend Bullzip PDF - BTW, IMO a really tremendous tool... Karl >Bernard, > > >In RP 3.0, I print to freeBullzip PDF printer and can direct to Bin Tray >using RP functions. May RP 2.0 has similar functions. > >RP 3.0 code: >oReport:SetSectionIntAttribute(1, SECTION_ATTR_PAPER_BIN, dwPrintTray) // >select paper tray > >If you have BullZip, it has an option to open the PDF after creation. > >HTH, >Jamal > >"Bernhard Mayer" wrote in message >news:4f3df88e$0$1577$91cee783@newsreader04.highway.telekom.at... > >Hello Jamal, > >no, I'm using the 2.x version. Nevertheless, AFAIK ReportPro cannot open >existing PDFs and print them. > >BR, >Bernhard > >"Jamal" schrieb im Newsbeitrag news:jhj8t8$7op$1@dont-email.me... > >Are you using ReportPro 3.0? > >Jamal > >"Bernhard Mayer" wrote in message >news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at... > >Dear fellow VO'ers! > >Does anyone know how to print a PDF to a specified printer on a specified >printer tray? So far I could not find any freeware solution, it should be >possible to trigger the print from VO or C#. > >TIA, >Bernhard
[toc] | [prev] | [next] | [standalone]
| From | "richard.townsendrose" <richard.townsendrose@gmail.com> |
|---|---|
| Date | 2012-02-18 02:27 -0800 |
| Subject | Re: Print a PDF |
| Message-ID | <1e6fc553-090b-48b3-886e-5a0a3969725a@w1g2000vbg.googlegroups.com> |
| In reply to | #2975 |
Hi
you have to set the printer etc ...
// locate and setup pdf printer
nPos:=AScan(aPrList,{|x|x[1]=="PDF995"})
nPos2:=AScan(aPrList,{|x|x[1]==DefaultPrinter})
IF nPos > 0 .AND. nPos2 > 0 .AND.
oPrinter:SetPrinterByPort(aPrList[nPos,3],aPrList[nPos,1])
// printer set - go for it
ELSE
TextBoxEnh{oWindow,'Printer Error','Cannot Set PDF995 as
Printer'}:Show()
RETURN FALSE
ENDIF
we only use pdf995.
but same for all like bullzip etc
r
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <public@ic2remove.this.com> |
|---|---|
| Date | 2012-02-16 16:58 +0100 |
| Message-ID | <eq9qj7thd9kmuoa5v34uqbs20jjvaj609a@4ax.com> |
| In reply to | #2955 |
On Thu, 16 Feb 2012 08:17:32 +0100, "Bernhard Mayer" <Idonotexist@nowhere.com> wrote: Hello Bernhard, Maybe one of these sites give you an answer; the first one uses a trick (predefine the printer with the required form as a 2nd drive rand use that): http://www.mofeel.net/1147-comp-os-ms-windows-programmer-win32/621.aspx The second one seems to have the answer: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_26373366.html but it's a subscription website (although you could try the free test period) Dick
[toc] | [prev] | [next] | [standalone]
| From | "Michael Hagl" <haglmi@hagl.de> |
|---|---|
| Date | 2012-02-17 17:07 +0100 |
| Subject | Re: Print a PDF |
| Message-ID | <jhlu10$5i4$1@news.albasani.net> |
| In reply to | #2955 |
Hi Berhard,
some weeks ago; I had the same problem (printing a PDF to any printer)
shellexecute() does not help, because it prints only to default printer.
I made some tests with OLE (CreateObject("AcroPdf.pdf")). But this does not
realy work with ArcoReader, only whith full version.
Now I'm using sumatraPDF, which can print a pdf at command line (tip comes
from Gerhard Bunzel, thank you). But I don't know how to select tray.
Michael Hagl
"Bernhard Mayer" <Idonotexist@nowhere.com> schrieb im Newsbeitrag
news:4f3cadcb$0$1578$91cee783@newsreader04.highway.telekom.at...
> Dear fellow VO'ers!
>
> Does anyone know how to print a PDF to a specified printer on a specified
> printer tray? So far I could not find any freeware solution, it should be
> possible to trigger the print from VO or C#.
>
> TIA,
> Bernhard
>
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f@gmail.com> |
|---|---|
| Date | 2012-02-18 14:06 +0100 |
| Message-ID | <jho7p2$l4g$1@news.albasani.net> |
| In reply to | #2955 |
Hi Bernhard, I don't make use of RP, anyway I think you can choice the destination printer... If so, I don't see any problem, if I well understood your request. PDFcreator configuration is very simple and powerful and you can furthermore create how many profiles you need. Just now I made a try: (sorry for wrong translation, my version is in Italian, but you can get an idea of) - Configuration -> Printing -> New profile - Give it a descriptive name - Check on "Print after saving" - in "Dialog window" select "Not Show (Predefined)" - in "Printer" choice select your preferred printer - again in "Dialog window" select "Show printer setup" - "Save" After that, when you print something select PDFcreator printer, click OK, fullfill the required field, select the profile you want to use, click SAVE and the real printer option panel pops up, there you can select paper tray and all. If your customer are not bothered to do so, that's all. Furthermore PDFcreator has COM interface and command line capability; I don't know much about these because I never made use of them. HTH, Francesco Il 16/02/2012 08:17, Bernhard Mayer ha scritto: > Dear fellow VO'ers! > > Does anyone know how to print a PDF to a specified printer on a > specified printer tray? So far I could not find any freeware solution, > it should be possible to trigger the print from VO or C#. > > TIA, > Bernhard >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web