Filenames[1] := 'C:\Temp\1.pdf'; Filenames[2] := 'C:\Temp\2.pdf'; Filenames[3] := 'C:\Temp\3.pdf'; SalesInvoiceReport.SAVEASPDF(Filenames[1]); DyconTimerReport.SAVEASPDF(Filenames[2]); DyconUtgiftReport.SAVEASPDF(Filenames[3]); IF ISCLEAR(DyconPDFMerger) THEN CREATE(DyconPDFMerger); tempText := DyconPDFMerger.MergeFiles('C:\Temp\output.pdf', 'C:\Temp\', '1.pdf;2.pdf;3.pdf');(The code above forces the role based client to disconnect.)
IF ISCLEAR(BioPDF) THEN CREATE(BioPDF); BioPDF.Init; BioPDF.LoadSettings; RunOnceFile := BioPDF.GetSettingsFileName(TRUE); BioPDF.SetValue('Output','c:\temp\testoutput.pdf'); BioPDF.SetValue('Showsettings', 'never'); BioPDF.SetValue('ShowPDF', 'no'); BioPDF.SetValue('ShowProgress', 'no'); BioPDF.SetValue('ShowProgressFinished', 'no'); BioPDF.SetValue('SuppressErrors', 'yes'); BioPDF.SetValue('ConfirmOverwrite', 'no'); BioPDF.SetValue('MergeFile', Filenames[1] + '|' + Filenames[2] + '|' + Filenames[3]); BioPDF.WriteSettings(TRUE); TimeOut := 0; WHILE EXISTS(RunOnceFile) AND (TimeOut < 10) DO BEGIN SLEEP(1000); TimeOut := TimeOut + 1; END;
Comments
1. where did you put the code?
2. does it work in classic?
2a. if so, is the a biopdf (or whatever) installed in the same place of nav server? (you know, automations are instatiated on nav server, unless you specify TRUE parameter of the CREATE function) unless you specify the TRUE parameter as the third one. To check this out, try to do instead of
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
i edited my previous message...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I have tried what you said. Good suggestion.
But, the merged pdf will still not write and save. I have checked the server and the client and it is not in either of the places.
I have tried to start the automation on both computers aswell. (create(bla, false, false), and create(bla, false, true).
Here is all of the code i am trying
Check out mibuso about how to handle files in role tailored client, i think that this is your issue
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
you should DOWNLOAD the pdfs from nav server and then merge them
OR
install the biopdf on the server and instantiate it on the server (a plain CREATE(biopdf) should be enough). In this way you can save the 3 pdfs to merge on server, merge them on the server and then download the result on the client (this is the best option in my opinion: in this way you install the biopdf only on the server machine instead of on all the clients; moreover you thin the network traffic)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
But still nothing.
1. triple SAVEASPDF (create files on server) --> how many files does it create? just one of three?!
2. create(biopdf) on server
3. merge files on server on specified path on the server (does the path exist?)
4. the merged pdf is NOT created on the server (or is just one file created or whatever?)
if you've done everything correct, i think that there's some issue in the automation management, but here i can't help: never used it
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
2. done
3. Path does exist
4. The merge is not created on the server.
So i think this problem lies with the BioPDF automation server... I am not sure that it runs at all, when there is no report that is printing.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
did you try the DyconPDFMerger again with correct CREATE parameters
I've never merged pdfs and never heard about these pdf mergers... Just shoot in the dark
I am running the role based client from the same machine as the server now.
I can try running it from a seperate computer.... trying it now
I had already tried the x86 but without restarting nav server and without the ISSERVICETIER command.
Great , Just add the [SOLVED] check to your first post
The problem with BioPDF is still a little annoying. But, no need to do anything about it now.
You've shared the pdf merger already - viewtopic.php?f=32&t=47806 , but that's why we are here - sharing knowledge and help each other
our reward is that you (or someone else in the forum) will spend a pair of minutes of their time in order to help us with our problems!
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I am able to run the Automation server from the server itself. BUT, when i try it from a client outside the server it will not work. I think it is the reoccurring problem of setting permissions for windows 2008 server :S
any idea?
"Systemet finner ikke angitt fil..." = System is unable to find given file.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog