Print Page | Close Window

Silently (real) print specified PDF pages from VB

Printed From: www.exp-systems.com
Category: PDF reDirect
Forum Name: Programming
Forum Discription: VBA and Batch Tools to control PDF reDirect Pro
URL: http://www.exp-systems.com/Forum_exp/forum_posts.asp?TID=338
Printed Date: 19 Apr 24 at 2:24PM


Topic: Silently (real) print specified PDF pages from VB
Posted By: jrdk
Subject: Silently (real) print specified PDF pages from VB
Date Posted: 18 Jul 07 at 7:11AM
Can anyone please fill in sample code of how to "silently" print a specific page of an open PDF in VB6, to a "real" printer?

I do not want the printer dialog to show, nor any other "needed user actions" or the PDF redirect to pop up.


Private Function print_specific_PDF_pages(ByVal PDF_file As String, ByVal page_number_to_print As Long)

Dim oPDF As New PDFR_PRO_Batch_RC.PDF_reDirect_Pro_Tool
Dim rtn As Long

With oPDF
   rtn = .Utility_Open_PDF(PDF_file, "")
   If rtn Then
       ' print specified page_number_to_print




      
   Else
      MsgBox "Could not open PDF document: " & PDF_file
   End If
   rtn = .Utility_Close_PDF(PDF_file)
End With
End Function


Thank you!




Replies:
Posted By: Michel_K17
Date Posted: 18 Jul 07 at 12:55PM
I am not sure if it is possible to be completely silent, but I will certainly take a look, and get back to you later today.


-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: Michel_K17
Date Posted: 19 Jul 07 at 12:37AM
Hi,

    Well, I have done some research. The function that you are asking for is not available today, but I see that I have written code that I could modify to print silently. I would need to do that modification, and update the ActiveX component.

    Do you have an immediate need for this feature? I am asking because I am currently working on a different project for a customer, but I could look at your request in about 1 month's time.




-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: coopervi
Date Posted: 19 Jul 07 at 10:22AM

Hello,

I just joined this forum because I am also interested in unattended saving and printing of PDF documents from VB6, VB.NET, etc.  One or two months would be great.

Thanks.

-coopervi



Posted By: jrdk
Date Posted: 19 Jul 07 at 10:59AM
I definitely would appreciate a solution in a few days, if at all possible? Clap

In fact I somehow thought that option already was available, and went ahead and bought the pro version, as I read that it was controlable from VB.
 My mistake Cry

I have searched quite sometime to find this function. Doing so, I found that there are quite a few requests for this function (try Google this yourself). Sure, solutions are out there, but for 10 or more times the price of PDF redirect.

Well, its' your time and decision. Thank you in advance!


Posted By: Michel_K17
Date Posted: 20 Jul 07 at 12:43AM
Hi,

    Let me know if you'd like a refund on your purchase.

    I do plan a whole bunch of new VB features, not just this one. However, I need to wrap up a special custom project first. Perhaps it will be finished sooner than I think as it is going pretty well so far.



-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: jrdk
Date Posted: 20 Jul 07 at 7:53AM
Refund: No thanks:
1) I could have read more of your information. 
2) I would rather wait and get the feature.

Let me know if you want me to do som beta-testing, when you are ready.


Posted By: Michel_K17
Date Posted: 21 Jul 07 at 8:39AM
OK. I'll let you know when the next beta version is available.



-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: Michel_K17
Date Posted: 01 Aug 07 at 2:01PM
Good news! Smile

I completed your request. It's available [ http://www.exp-systems.com/forum_exp/forum_posts.asp?TID=254&FID=3&PR=3 - here ] as v2.2.5 of the component.

I also included sample code and a VB6 project to show you how to print silently, or with a printer dialog box. You can even select multiple PDF files, and print them all in one step (see pic below).



Cheers!



-------------
Michel Korwin-Szymanowski
EXP Systems LLC


Posted By: jrdk
Date Posted: 02 Aug 07 at 3:49AM
This is what I call a perfect customer service! ClapClapClap

I will check it tonight.

Thank you very much!





Posted By: jrdk
Date Posted: 06 Aug 07 at 1:20PM

Had a few days off - no time to test it.
I have now.
Works exactly as I hoped for!

Super utility. Super service. Super deal.


Posted By: Michel_K17
Date Posted: 08 Aug 07 at 12:30AM
Cool! Smile



Print Page | Close Window