Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12384 > unrolled thread

PDF Printing with PDF Creator and CA RET

Started byrolandgell.rg@gmail.com
First post2019-04-04 05:32 -0700
Last post2019-04-09 07:39 -0700
Articles 12 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  PDF Printing with PDF Creator and CA RET rolandgell.rg@gmail.com - 2019-04-04 05:32 -0700
    Re: PDF Printing with PDF Creator and CA RET Johan Nel <johan.nel@xsinet.co.za> - 2019-04-04 15:09 +0200
      Re: PDF Printing with PDF Creator and CA RET rolandgell.rg@gmail.com - 2019-04-04 06:55 -0700
        Re: PDF Printing with PDF Creator and CA RET Johan Nel <johan.nel@xsinet.co.za> - 2019-04-06 17:12 +0200
    Re: PDF Printing with PDF Creator and CA RET Stephan Hagedorn <stephanandreashagedorn@googlemail.com> - 2019-04-04 06:26 -0700
      Re: PDF Printing with PDF Creator and CA RET rolandgell.rg@gmail.com - 2019-04-04 06:52 -0700
        Re: PDF Printing with PDF Creator and CA RET Stephan Hagedorn <stephanandreashagedorn@googlemail.com> - 2019-04-18 01:03 -0700
    Re: PDF Printing with PDF Creator and CA RET "Jamal" <noooospam@example.com> - 2019-04-04 23:43 -0400
      Re: PDF Printing with PDF Creator and CA RET rolandgell5570@gmail.com - 2019-04-06 07:57 -0700
        Re: PDF Printing with PDF Creator and CA RET "Jamal" <noooospam@example.com> - 2019-04-06 21:46 -0400
          Re: PDF Printing with PDF Creator and CA RET rolandgell5570@gmail.com - 2019-04-07 06:54 -0700
          Re: PDF Printing with PDF Creator and CA RET rolandgell5570@gmail.com - 2019-04-09 07:39 -0700

#12384 — PDF Printing with PDF Creator and CA RET

Fromrolandgell.rg@gmail.com
Date2019-04-04 05:32 -0700
SubjectPDF Printing with PDF Creator and CA RET
Message-ID<b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com>
Dear VO-community, 

since many years i Need to update one of "my" applications for my customer. He would like to send invoices via E-Mail and pdf.
For printing i still use CA-RET. To implement this requirement i use following steps. 

1: buffer the Default Printe from Windows
2: set Default Printer to PDF Creator (via registry)
3: Do printing with CA-ret / Com-Object form PDF Creator
4: Save outpout; send via Mail (blat.exe)
5: reset Default Printer

I know that this is not a exemplary implementation but....

On my dev environement These steps works absolutly fine. With different Clients (win7 / win10 / peer-to-peer Network) as well. 

But on the customer side the initialization of the pdf-com Object / JobQueue fires and error. 

If my "app" need not to change the Default Printer to the pdf creator my steps works as well.

I am absolutly clueless. 

I hope some of you have an idea what could happened.

Thank for your advices, 

Roland

[toc] | [next] | [standalone]


#12385

FromJohan Nel <johan.nel@xsinet.co.za>
Date2019-04-04 15:09 +0200
Message-ID<q84vm5$t4b$1@dont-email.me>
In reply to#12384
Hi Roland,

On 2019/04/04 14:32, rolandgell.rg@gmail.com wrote:
> If my "app" need not to change the Default Printer to the pdf creator my steps works as well.
>
> I am absolutly clueless.
>
> I hope some of you have an idea what could happened.
On your customer's site, the user probably do not have administrator 
rights.  You need to basically "Run as administrator" to modify the 
registry.

By the way, have you looked at X# yet?  See the link below...

HTH,

-- 
*Johan Nel*
Friend of XSharp (FOX)
https://xsharp.info
George, South Africa

[toc] | [prev] | [next] | [standalone]


#12388

Fromrolandgell.rg@gmail.com
Date2019-04-04 06:55 -0700
Message-ID<aebf7a60-95a6-4af9-b4db-deb9ed8eb9fa@googlegroups.com>
In reply to#12385
Hello Johan, 

during debugging - i am able to see that windows has changed the default printer to pdf creator. But a standard-user should be able to switch the default printer, isn't it? Yes, i have had a look a X#. But the vo - applicaton is just a legacy system from approx 20 years ago ;-) And runs, and runs ....

thank you very much for your ideas. 

Regards from Frankfurt
Roland

[toc] | [prev] | [next] | [standalone]


#12397

FromJohan Nel <johan.nel@xsinet.co.za>
Date2019-04-06 17:12 +0200
Message-ID<q8afk7$k4a$1@dont-email.me>
In reply to#12388
Hi Roland,

On 2019/04/04 15:55, rolandgell.rg@gmail.com wrote:
> Yes, i have had a look a X#. But the vo - applicaton is just a legacy system from approx 20 years ago ;-) And runs, and runs .....
Well, there is a VO forum where you might actually find a quicker 
working response to your question...

-- 
*Johan Nel*
FOX member: Friend(s) of XSharp
https://xsharp.info
George, South Africa

[toc] | [prev] | [next] | [standalone]


#12386

FromStephan Hagedorn <stephanandreashagedorn@googlemail.com>
Date2019-04-04 06:26 -0700
Message-ID<8421ad8d-f797-4166-9361-03607ce21b7a@googlegroups.com>
In reply to#12384
Am Donnerstag, 4. April 2019 14:32:12 UTC+2 schrieb roland...@gmail.com:
> Dear VO-community, 
> 
> since many years i Need to update one of "my" applications for my customer. He would like to send invoices via E-Mail and pdf.
> For printing i still use CA-RET. To implement this requirement i use following steps. 
> 
> 1: buffer the Default Printe from Windows
> 2: set Default Printer to PDF Creator (via registry)
> 3: Do printing with CA-ret / Com-Object form PDF Creator
> 4: Save outpout; send via Mail (blat.exe)
> 5: reset Default Printer
> 
> I know that this is not a exemplary implementation but....
> 
> On my dev environement These steps works absolutly fine. With different Clients (win7 / win10 / peer-to-peer Network) as well. 
> 
> But on the customer side the initialization of the pdf-com Object / JobQueue fires and error. 
> 
> If my "app" need not to change the Default Printer to the pdf creator my steps works as well.
> 
> I am absolutly clueless. 
> 
> I hope some of you have an idea what could happened.
> 
> Thank for your advices, 
> 
> Roland

Hi Roland

we are using a commercial 3rd party lib to convert our documents from rtf 2 pdf to avoid such problems. maybe this could be an option?

[toc] | [prev] | [next] | [standalone]


#12387

Fromrolandgell.rg@gmail.com
Date2019-04-04 06:52 -0700
Message-ID<c4ccf883-2e91-405b-9b33-11b88c09e0bd@googlegroups.com>
In reply to#12386
HI Stephan, 

yes the usage of an 3rd party lib would be an option.
What is the name of your product? 

Regards
Roland

[toc] | [prev] | [next] | [standalone]


#12440

FromStephan Hagedorn <stephanandreashagedorn@googlemail.com>
Date2019-04-18 01:03 -0700
Message-ID<93fbbb12-4a4b-4634-a5a9-cf0819bf25b1@googlegroups.com>
In reply to#12387
Am Donnerstag, 4. April 2019 15:52:40 UTC+2 schrieb roland...@gmail.com:
> HI Stephan, 
> 
> yes the usage of an 3rd party lib would be an option.
> What is the name of your product? 
> 
> Regards
> Roland

take a look: https://www.subsystems.com/rpw.htm#tab3 
very simple to use 

[toc] | [prev] | [next] | [standalone]


#12389

From"Jamal" <noooospam@example.com>
Date2019-04-04 23:43 -0400
Message-ID<q86isc$jg8$1@news.albasani.net>
In reply to#12384
>>
But on the customer side the initialization of the pdf-com Object / JobQueue 
fires and error.  <<

When you install the PDF com object on your client's computer, do you 
register it via your installation (setup) program (it should have this 
option)?  Hint: regsvr32

What is the error?

Jamal

wrote in message 
news:b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com...

Dear VO-community,

since many years i Need to update one of "my" applications for my customer. 
He would like to send invoices via E-Mail and pdf.
For printing i still use CA-RET. To implement this requirement i use 
following steps.

1: buffer the Default Printe from Windows
2: set Default Printer to PDF Creator (via registry)
3: Do printing with CA-ret / Com-Object form PDF Creator
4: Save outpout; send via Mail (blat.exe)
5: reset Default Printer

I know that this is not a exemplary implementation but....

On my dev environement These steps works absolutly fine. With different 
Clients (win7 / win10 / peer-to-peer Network) as well.

But on the customer side the initialization of the pdf-com Object / JobQueue 
fires and error.

If my "app" need not to change the Default Printer to the pdf creator my 
steps works as well.

I am absolutly clueless.

I hope some of you have an idea what could happened.

Thank for your advices,

Roland 

[toc] | [prev] | [next] | [standalone]


#12396

Fromrolandgell5570@gmail.com
Date2019-04-06 07:57 -0700
Message-ID<4f4a4d9a-983e-4a8d-9a38-925b3b188f40@googlegroups.com>
In reply to#12389
Hello Jamal, 

the error message in the voerror.log is:
Error Code:  Access forbidden. An instance of PDFCreator is currently running.
Subsystem: PDFCreator.ComImplementation
Error Subcode: 1
Function: INITIALIZE
Description: Access forbidden. An instance of PDFCreator is currently running.
CallStack:
IQUEUE:INITIALIZE (Line:11)
WINDOW:BELEG2REPORT (Line:239)
DTARECHNUNG:PSHRGDRUCK (Line:20)
APP:START (Line:154)
START (Line:6)

Error Object created:
--------------------
SubSystem       :PDFCreator.ComImplementation
SubCode         :1
GenCode         :Waiting...
OsCode          :0
ArgType         :NIL
FuncPtr         :0x00000000
ArgNum          :0
FuncSym         :INITIALIZE
Severity        :0
CanDefault      :.T.
CanRetry        :.F.
CanSubstitute   :.F.
Operation       :
Description     :Access forbidden. An instance of PDFCreator is currently running.
FileName        :
Tries           :0
FileHandle      :0
SubCodeText     :
Arg             :
ArgTypeReq      :NIL
MaxSize         :0
SubstituteType  :NIL
CallFuncSym     :
--------------------

Regards 
Roland

Am Freitag, 5. April 2019 05:43:09 UTC+2 schrieb Jamal:
> >>
> But on the customer side the initialization of the pdf-com Object / JobQueue 
> fires and error.  <<
> 
> When you install the PDF com object on your client's computer, do you 
> register it via your installation (setup) program (it should have this 
> option)?  Hint: regsvr32
> 
> What is the error?
> 
> Jamal
> 
> wrote in message 
> news:b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com...
> 

[toc] | [prev] | [next] | [standalone]


#12402

From"Jamal" <noooospam@example.com>
Date2019-04-06 21:46 -0400
Message-ID<q8bkpd$ieo$1@news.albasani.net>
In reply to#12396
You will need to call IsInstanceRunning before calling it:

From the docs: 
http://docs.pdfforge.org/pdfcreator/3.3/en/pdfcreator/com-interface/reference/pdfcreator/

bool IsInstanceRunning

Summary: Checks if PDFCreator is already running.

Return value: True, if PDFCreator is running, otherwise false.

Note

Use this property to check if PDFCreator is running before start working 
with the queue object. If PDFCreator is already running, your attempt to 
initialize the queue will fail.

Jamal


wrote in message 
news:4f4a4d9a-983e-4a8d-9a38-925b3b188f40@googlegroups.com...

Hello Jamal,

the error message in the voerror.log is:
Error Code:  Access forbidden. An instance of PDFCreator is currently 
running.
Subsystem: PDFCreator.ComImplementation
Error Subcode: 1
Function: INITIALIZE
Description: Access forbidden. An instance of PDFCreator is currently 
running.
CallStack:
IQUEUE:INITIALIZE (Line:11)
WINDOW:BELEG2REPORT (Line:239)
DTARECHNUNG:PSHRGDRUCK (Line:20)
APP:START (Line:154)
START (Line:6)

Error Object created:
--------------------
SubSystem       :PDFCreator.ComImplementation
SubCode         :1
GenCode         :Waiting...
OsCode          :0
ArgType         :NIL
FuncPtr         :0x00000000
ArgNum          :0
FuncSym         :INITIALIZE
Severity        :0
CanDefault      :.T.
CanRetry        :.F.
CanSubstitute   :.F.
Operation       :
Description     :Access forbidden. An instance of PDFCreator is currently 
running.
FileName        :
Tries           :0
FileHandle      :0
SubCodeText     :
Arg             :
ArgTypeReq      :NIL
MaxSize         :0
SubstituteType  :NIL
CallFuncSym     :
--------------------

Regards
Roland

Am Freitag, 5. April 2019 05:43:09 UTC+2 schrieb Jamal:
> >>
> But on the customer side the initialization of the pdf-com Object / 
> JobQueue
> fires and error.  <<
>
> When you install the PDF com object on your client's computer, do you
> register it via your installation (setup) program (it should have this
> option)?  Hint: regsvr32
>
> What is the error?
>
> Jamal
>
> wrote in message
> news:b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com...
> 

[toc] | [prev] | [next] | [standalone]


#12403

Fromrolandgell5570@gmail.com
Date2019-04-07 06:54 -0700
Message-ID<efb63c90-aa29-4c23-9ff9-b6b1ab7c26d1@googlegroups.com>
In reply to#12402
Hello Jamal, 

thank you very much for your hint. 
I will include these logic and let you know. 

BR Roland

Am Sonntag, 7. April 2019 03:46:23 UTC+2 schrieb Jamal:
> You will need to call IsInstanceRunning before calling it:
> 
> From the docs: 
> http://docs.pdfforge.org/pdfcreator/3.3/en/pdfcreator/com-interface/reference/pdfcreator/
> 
> bool IsInstanceRunning
> 
> Summary: Checks if PDFCreator is already running.
> 
> Return value: True, if PDFCreator is running, otherwise false.
> 
> Note
> 
> Use this property to check if PDFCreator is running before start working 
> with the queue object. If PDFCreator is already running, your attempt to 
> initialize the queue will fail.
> 
> Jamal
> 
> 
> wrote in message 
> news:4f4a4d9a-983e-4a8d-9a38-925b3b188f40@googlegroups.com...
> 
> Hello Jamal,
> 
> the error message in the voerror.log is:
> Error Code:  Access forbidden. An instance of PDFCreator is currently 
> running.
> Subsystem: PDFCreator.ComImplementation
> Error Subcode: 1
> Function: INITIALIZE
> Description: Access forbidden. An instance of PDFCreator is currently 
> running.
> CallStack:
> IQUEUE:INITIALIZE (Line:11)
> WINDOW:BELEG2REPORT (Line:239)
> DTARECHNUNG:PSHRGDRUCK (Line:20)
> APP:START (Line:154)
> START (Line:6)
> 
> Error Object created:
> --------------------
> SubSystem       :PDFCreator.ComImplementation
> SubCode         :1
> GenCode         :Waiting...
> OsCode          :0
> ArgType         :NIL
> FuncPtr         :0x00000000
> ArgNum          :0
> FuncSym         :INITIALIZE
> Severity        :0
> CanDefault      :.T.
> CanRetry        :.F.
> CanSubstitute   :.F.
> Operation       :
> Description     :Access forbidden. An instance of PDFCreator is currently 
> running.
> FileName        :
> Tries           :0
> FileHandle      :0
> SubCodeText     :
> Arg             :
> ArgTypeReq      :NIL
> MaxSize         :0
> SubstituteType  :NIL
> CallFuncSym     :
> --------------------
> 
> Regards
> Roland
> 
> Am Freitag, 5. April 2019 05:43:09 UTC+2 schrieb Jamal:
> > >>
> > But on the customer side the initialization of the pdf-com Object / 
> > JobQueue
> > fires and error.  <<
> >
> > When you install the PDF com object on your client's computer, do you
> > register it via your installation (setup) program (it should have this
> > option)?  Hint: regsvr32
> >
> > What is the error?
> >
> > Jamal
> >
> > wrote in message
> > news:b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com...
> >

[toc] | [prev] | [next] | [standalone]


#12412

Fromrolandgell5570@gmail.com
Date2019-04-09 07:39 -0700
Message-ID<b983e298-190c-4d65-9211-38cffd9f13b0@googlegroups.com>
In reply to#12402
Hello Jamal, 

it's me once again. 
I've just tested your hints. No wondering - it is working ;-)

Thank you very much 

Roland

Am Sonntag, 7. April 2019 03:46:23 UTC+2 schrieb Jamal:
> You will need to call IsInstanceRunning before calling it:
> 
> From the docs: 
> http://docs.pdfforge.org/pdfcreator/3.3/en/pdfcreator/com-interface/reference/pdfcreator/
> 
> bool IsInstanceRunning
> 
> Summary: Checks if PDFCreator is already running.
> 
> Return value: True, if PDFCreator is running, otherwise false.
> 
> Note
> 
> Use this property to check if PDFCreator is running before start working 
> with the queue object. If PDFCreator is already running, your attempt to 
> initialize the queue will fail.
> 
> Jamal
> 
> 
> wrote in message 
> news:4f4a4d9a-983e-4a8d-9a38-925b3b188f40@googlegroups.com...
> 
> Hello Jamal,
> 
> the error message in the voerror.log is:
> Error Code:  Access forbidden. An instance of PDFCreator is currently 
> running.
> Subsystem: PDFCreator.ComImplementation
> Error Subcode: 1
> Function: INITIALIZE
> Description: Access forbidden. An instance of PDFCreator is currently 
> running.
> CallStack:
> IQUEUE:INITIALIZE (Line:11)
> WINDOW:BELEG2REPORT (Line:239)
> DTARECHNUNG:PSHRGDRUCK (Line:20)
> APP:START (Line:154)
> START (Line:6)
> 
> Error Object created:
> --------------------
> SubSystem       :PDFCreator.ComImplementation
> SubCode         :1
> GenCode         :Waiting...
> OsCode          :0
> ArgType         :NIL
> FuncPtr         :0x00000000
> ArgNum          :0
> FuncSym         :INITIALIZE
> Severity        :0
> CanDefault      :.T.
> CanRetry        :.F.
> CanSubstitute   :.F.
> Operation       :
> Description     :Access forbidden. An instance of PDFCreator is currently 
> running.
> FileName        :
> Tries           :0
> FileHandle      :0
> SubCodeText     :
> Arg             :
> ArgTypeReq      :NIL
> MaxSize         :0
> SubstituteType  :NIL
> CallFuncSym     :
> --------------------
> 
> Regards
> Roland
> 
> Am Freitag, 5. April 2019 05:43:09 UTC+2 schrieb Jamal:
> > >>
> > But on the customer side the initialization of the pdf-com Object / 
> > JobQueue
> > fires and error.  <<
> >
> > When you install the PDF com object on your client's computer, do you
> > register it via your installation (setup) program (it should have this
> > option)?  Hint: regsvr32
> >
> > What is the error?
> >
> > Jamal
> >
> > wrote in message
> > news:b9566b65-9e56-43f4-9428-6383dfac3758@googlegroups.com...
> >

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web