Re: PDFSplitMerge - wierd !



Hi Roger

all versions check

I will report this to Guangmingsoft but expect nothing since
they do not have/check with vfp and this is so dependent on
<something> of mine.

I think I will just code around it

Thanks for your time,
let me know if I can be of any help to you

al



"Roger Ansell" <notmy@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:eFJK5cV8HHA.5796@xxxxxxxxxxxxxxxxxxxxxxx
OK, I think we need to rule out some issues because as
much as I try, I can't get this thing to NOT work!
I've created a cntSend class in a dummy vcx with the
same oPDFSplitMerge property and the same Open method
with the same code ... and it works from the command
window and in a compiled exe.

Firstly, the DLLs:
PDFSplitMerge.dll Version 2.0.2007.718
pdfkit.dll Version 2.0.2007.118

Secondly (and I know we addressed this in your
previous thread) let's be *absolutely sure
we'e dealing with the same VFP9 runtimes.
Issue ?Version(4) early in your main prg
and make sure it displays:
9.00.0000.3504 when run from a compiled
exe launched from Windows Explorer.

Thirdly, I'm running on XPPro SP2.
I've tested both as Admin and Limited user,
both with no problems

Other than that, I'm running out of ideas.

-Roger



"Al Marino" <almarino_AT_intelliform.net> wrote in message
news:Or3AJpU8HHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
more testing

<<createobject("PDFSplitMerge.PDFSplitMerge.1")>>

1. works in any method/code of form and init of
frmReport.cntSend, development and runtime

2. works in frmReport.cntSend.<method> from command line,
if UNCOMPILED
does not work if compiled !!!
does not work in runtime

3.
lcX = "PDFSplitMerge.PDFSplitMerge.1"
createobjec(lcX)

always works from command line
does not work in runtime

al


"Roger Ansell" <notmy@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:%230jfkHB8HHA.5980@xxxxxxxxxxxxxxxxxxxxxxx
Hi Al,

This works too, both as a prg and as an exe:

oForm = NewObject("FrmReport")
oForm.Visible = .T.
oForm.cntSend.Open
Read Events

Define Class FrmReport As Form
Add Object cntSend As Container With ;
oSplitMerge = Null ,;
Visible = .F.
Procedure cntSend.Open
This.oSplitMerge =
CreateObject("PDFSplitMerge.PDFSplitMerge.1")
Cd "C:\DISTRIB\ASIC Forms\ASIC Lite PDF Old"
lnFiles = ADir(laPDFs,"*.pdf")
lcInput=""
For i = 1 to lnFiles
lcInput = lcInput + laPDFs(i,1) + "|"
Next
lcInput = Rtrim(lcInput,1,"|")
This.oSplitMerge.Merge(lcInput,"merged.pdf")
EndProc
Procedure cntSend.Destroy
This.oSplitMerge = Null
EndProc
Procedure Unload
Clear Events
EndProc
EndDefine

-Roger


"Al Marino" <almarino_AT_intelliform.net> wrote in
message news:uEP3Lh$7HHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
Hi Roger
Thanks for taking the time

It also works for me on any button on the form
However, not in any code in the Frmrpt.cntReport.method

I doubt it is the framework since cntReport is itself
merely a container for the different functions
but I am going to test this with a simple class
container (no code) and simple form
should have time to do tomorrow

al


"Roger Ansell" <notmy@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:uwSDjl07HHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
Just tried it on a plain vanilla form with a property
called oPDFSplit. CommandButton on the form click
event
This.oPDFSplit =
CreateObject("PDFSplitMerge.PDFSplitMerge.1")

In development mode I can click the button any number
of times without error and checking the debugger,
the PDFSplitMerge object was created.

Created an exe and ran that from Windows Explorer ...
again no problems encountered at all.

Sounds like your framework is the problem.
Have you got any access/assign methods or event
binding
on your oSplitMerge property that could possibly
interfere?

-Roger


"Al Marino" <almarino_AT_intelliform.net> wrote in
message news:eRWs37z7HHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
Hi All

I have been out of town, so I have started a new
thread

My previous post said:
<<We just purchased PDFSplitMerge from Guangmingsoft
It is a set of dll's that work fine in development
Does not work in runtime (vfp9, sp1)
Fails on createobject>>

on further testing, this is not correct !
our framework has classes: cntSend, and Frmrpt that
are used here
Frmrpt class has cntSend as member, cntSend handles
report, email, fpt, etc thru contained classes
cntMapi etc

situation 1:
method cntSend.open tries to:
This.oSplitMerge =
createobjec("PDFSplitMerge.PDFSplitMerge.1")

in development, this works once !!
on 2nd attempt, fails (restarting vfp => once again)
in runtime, always fails

situation 2
Frmrpt button has code:
oObj = createobjec("PDFSplitMerge.PDFSplitMerge.1")

this works always in development and runtime !!

anybody have any idea what is going on ?

al
ps. for anybody who is interested, when this works it
is very fast, combines 50 reports into one pdf over
10 MB in about 1 second !


















.