What a great piece of software, shame their technical department are not very responsive :x Has anyone integrated this with Navision (of ANY version) or does anyone know where I can lay my hands on an integration manual so that I can try it myself. TIA Dean
Hi Dean, We have used it quite a lot for automatically sending PO’s and Quotes to vendors and customers and it works a treat. We can automatically populate the email address, subject line and body and attaching the .pdf files works great. Just give me a shout if you would like some code snippets, I am sure our developer can give you a few hints and tips. Meint
Hello Meint, sounds very interesting! Could you share some knowledge about the integration? Thanks Pelle
Thats exactley what I need to do. Im sure there is some kind of ocx that allows me to integrate wth PDF mailer, but I cannot find any documentation and Gotomaxx haven’t got back to me after 1 week [V]
Hi Dean and Pelle, The actual integration is really simple and does not require any OCX automation as far I can see (but I am only the Project Manager and my development skills are limited). I will double check with the developer on Monday but think you just need to do the following: 1) Declare your variables (email address, name, subject line, etc.) 2) Have a section on the report with a text string which contains your variables and steering commands and PDF mailer will automatically pick these up and use them. I will have a look this weekend to see if I can build a Cronus sales quote object that shows you how to do it. Once this is complete I will publish it on my website and let you know. Initially we had two different reports on the menu (one for priniting and one for the PDF stuff), now we are dynamically checking if the user wants the PDF or a printed copy and show or hide the steering codes accordingly.
Hi meint, the steering commands is the bit I need. I will look forward to Monday and hopefully put an end to my misery of trying to get info from Gotomaxx [:D] Many Thanks for this. Dean.
Meint, this is great stuff! I am reallly looking forward to your next move. Take your time! And please do not get offended by my bad English! Pelle
Right guys here goes… I have built a small small sample of what you can do with PdfMailer and uploaded it to my website. Basically the sample allows you to send a PDF automatically from the quote screen. It will open your email client and populate the subject line and the email details of the contact that is on the quote. If there is no contact it will use the email address of the customer. Steps to do this: 1) Download objects from my website at http://www.milldyk.co.uk/pdfmailer.zip 2) Install objects (1 form, 1 report) 3) Install PdfMailer and set the user up to always print the quote report (204) to the PdfMailer software. You can do this in the G/L, Printer Selections. 4) You can now send the quote as an automatic PDF attachment to an email. The code should give you some idea of what we did with this, if you wanna get really fancy with this, I have made the documentation available at http://www.milldyk.co.uk/maxxpdfmailer.pdf , it should contain all the steering commands you ever need. It seems to work with most email clients apart from Netscape 7 which does some weird stuff which we never got round to sorting out. Have fun, any probs please let me know. Meint P.S. Pelle, absolutely nothing wrong with your English [:)]
Thanks Meint, I simply love guys that do these things late Saturday evenings. It shows your priorities. But I think I’ll postpone looking into your objects until tomorrow. Once again, thank you! Pelle
Thanks Pelle, I suppose that working on this on a Saturday night either makes me very dedicated or very sad indeed [:)] I noticed from my weblogs that quite a few people have downloaded the files, did it work as expected and were the objects of any use? Please let me know if you found any problems. We have done some more bits and pieces which might be useful for other users which I will stick up on the site at some stage in the future (and maybe add some navigational links). We have had a lot of help from forum users over the last few months and it would be nice to be able to do something in return. Meint
Hi Meint, Dedicated - Maybe [;)] Sad - You would have to ask Pelle as his post was only was only 1 hour after yours [:p] The objects were a good insight, but the manual was worth it weight in gold [:D][:D] I have integrated quite sucessfully and used my own version of simple MAPI so that I can do batch runs where each individual customer statement can be emailed with the pdf attachment or printed dependent on a flag on the customer card. Also, I used this MAPI as I didn’t want the user to have to “Send” the mail each time a window came up a s this could be a huge task !!![xx(] We (my NSC) are now looking at becoming an add-on partner with the Navision product so I hope to be developing it futher in the coming weeks. Thanks for everything Meint
Aargh, pain in the backside ISP lost all my web site files and I can’t find my backups anywhere. They are somewhere, but any chance that somebody who downloaded the two files above can send them to me again to save me the time to look for them? Looking for the files pdfmailer.zip and maxxpdfmailer.zip. Many thanks Meint
As a related note to this topic, I just wanted to point out that we have created an add-on to automate the emailing (PDF format) and faxing of navision reports and documents. The add-on was recently released for navision version 4 as well. More information can be found at http://www.altusbusinesssolutions.com.
After various requests I have rebuilt the little bit of sample code that demonstrates how PDFMailer can be driven from Navision, so please email me directly if you would like a sample. Meint
You mean which embedded codes to use…
I have stumbled across some kind of “challenge” with pdf mailer… how could you manage to either print or mail a pdf with the same report… basically that without user intervention printing the report will use a normal printer from the printer selection and creating a pdf will use the maxx pdf mailer from the printer selection… any ideas around??? Saludos Nils
Nils, I believe the objects Isent to you should do just that, the print button on form 41 has been replaced with a menu option to print normally or print to PDF. If you chose to send to the PDF version, it will populate the steering code fields, which in turn get picked by PDFMailer. Without the variable set from the menu, the report will not display these and you can print as per normal. Meint
Hi Meint, I was wondering if there is a possibility to modify the FindPrinter functions in Codeunit 1 in order for the printer selection to select automatically the pdf mailer or normal printer. I basically want to avoid that the user has to change manually the printer in case the report should be printed… any ideas? By the way, thanks a lot for your inmediate response and mailing of the objects [;)] Saludos Nils
Ah, I see what you mean now, yes this is a bit of a pain for us as well, although users like their PDF stuff so much now, they hardly ever print anything. If you find a solution I would be interested to hear about it. Regards Meint
I am not sure if i get what you guys were talking about correctly. I am still quite new in c/side so I might be wrong. But I have a little solution for the problem. I can’t find the code that invoke FindPrinter so I assume FindPrinter is used internally by navision only. The following is my simple solution. (1) Codes needed in Form 41 (and other form where needed) SetUseDocMailer(UseDocMailer : Boolean) // FlagFile: local variable of type Boolean FlagFile.TEXTMODE(TRUE); IF FlagFile.CREATE('C:\t_FlagMailer') THEN BEGIN FlagFile.WRITE(FORMAT(UseDocMailer)); FlagFile.CLOSE; END;
In the trigger that runs the PDF Mailer printing function ,eg. OnPush(), add: SetUseDocMailer(TRUE); DocPrint.PrintSalesHeader(Rec); (2) Codes needed in Codeunit 1 FindPrinter(ReportID : Integer) : Text[250] CLEAR(PrinterSelection); // FlagMailer: local variable of type Boolean // FlagFile: local variable of type File FlagMailer := FALSE; IF FlagFile.OPEN('C:\t_FlagMailer') THEN BEGIN FlagFile.READ(FlagMailer); FlagFile.CLOSE; IF FILE.ERASE('C:\t_FlagMailer') THEN; END; IF FlagMailer THEN PrinterSelection.GET('DOCMAILERUSER',0) ELSE IF NOT PrinterSelection.GET(USERID,ReportID) THEN IF NOT PrinterSelection.GET('',ReportID) THEN IF NOT PrinterSelection.GET(USERID,0) THEN IF PrinterSelection.GET('',0) THEN; EXIT(PrinterSelection."Printer Name");
(3) Create a Database Login with User ID value of DOCMAILERUSER (4) Add an entry to Printer Selections with the following data: User ID: DOCMAILERUSER Report ID: 0 Printer Name: maxx PDFMAILER Standard This way, you can change the name to other mailer printer w/o changing the code. However, a simpler way is to hardcode the printer name in FindPrinter and skip step (3) and (4). Another alternative to using File is to designate any (new) table field to do the flagging instead. The point is to have a ‘system-global’ storage for the flag. I don’t know if this helps… but it’s what i have…[:)]