PDF overwriting previous PDF

Closed
vcoolio Posts 1404 Registration date Thursday July 24, 2014 Status Moderator Last seen September 15, 2023 - Oct 10, 2014 at 09:49 PM
vcoolio Posts 1404 Registration date Thursday July 24, 2014 Status Moderator Last seen September 15, 2023 - Oct 11, 2014 at 07:51 PM
Hello fellow Kioskeans,

When I generate an invoice from my invoice template, it is automatically saved to an "Invoice" folder as a pdf.
However, I have noticed that if the invoice has exactly the same client name (I have a number of repeat customers), the newest invoice overwrites the previous one in the same name once saved as a pdf. I have tried to create a Rename File message box giving me the option of renaming the newest invoice file from, say, "aaa.pdf" to "aaax.pdf" prior to saving it.
I tried to create a message box with the question: "Do you want to rename "aaa.pdf" to "aaax.pdf"? and the notification "There already is a file with the same name in this location" with a YES/NO option button.
However, I have not succeeded with the message box and I'm running out of hair!!

Does anyone have any ideas?

Thanks in advance.
Cheers,
vcoolio.




Related:

2 responses

xpcman Posts 19530 Registration date Wednesday October 8, 2008 Status Contributor Last seen June 15, 2019 1,826
Oct 11, 2014 at 03:58 PM
So what software package are you using?
0
vcoolio Posts 1404 Registration date Thursday July 24, 2014 Status Moderator Last seen September 15, 2023 259
Oct 11, 2014 at 07:51 PM
Hello xpcman,

Thanks for the reply.
No software package. I've created all my own templates etc in Excel using macros for various purposes.

Cheers,
vcoolio.
0