Breaking news from around the world
Get the Bing + MSN extension
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Is it possible to add another page on PDF file which is located on external path, when generating report.
I am not sure if you can print that but you can use an utility called PDF merge to merge two files after you saving your report into PDF
IF Emp.FIND('-') THEN
//filename:='C:\Temp\PayList-'+T_Employee."First Name"+' '+T_Employee."Last Name"+'.pdf';
// filename:='\\HR\c\NAV2016\Platna Lista-'+Emp."First Name"+' '+Emp."Last Name"+'.pdf';
CMD_LineTxt:=STRSUBSTNO('%1 output=%2 input=%3',HRSetup."PDF Merge Tool",OutputFileName,InputFileName);
This is code i used but it doesn't work. I have problem with pdfmerge application. If you could propose some application that will resolve my problem.
What error are you getting using that application ?
Please try to use processInfo instead of Shell to run the program. For example please check below
Below is the code which will merge file1 and file2 as out.pdf
These are variable declarations
ProcessStartInfo - DotNet - System.Diagnostics.ProcessStartInfo.'System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Process - DotNet - System.Diagnostics.Process.'System, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089'
ProcessStartInfo := ProcessStartInfo.ProcessStartInfo('C:\Program Files (x86)\Metaist\pdfmerge\bin\pdfmerge.exe');ProcessStartInfo.Arguments := '-o "c:\temp\out.pdf" "C:\Temp\file1.pdf" "C:\Temp\file2.pdf"';ProcessStartInfo.UseShellExecute := FALSE;ProcessStartInfo.CreateNoWindow := TRUE;ProcessStartInfo.RedirectStandardOutput := TRUE;Process := Process.Process;Process.StartInfo(ProcessStartInfo);Process.Start;
I tried the same approach. It's working well if the Pdf paths defined to ProcessStartInfo.Arguments is hardcoded like mentioned and I'm facing issue if I'm using it through variables. I believe there is some issue in the quotes.
The following is the code which I used. Request your guidance on it.
ProcessStartInfo := ProcessStartInfo.ProcessStartInfo('C:\Program Files (x86)\Metaist\pdfmerge\bin\pdfmerge.exe');
ArgumentPath := ''+'-o "'+NewPDFFile+'" "'+ PDFFile1 +'" "'+PDFFile2+'"';
ProcessStartInfo.Arguments := ArgumentPath;
ProcessStartInfo.UseShellExecute := FALSE;
ProcessStartInfo.CreateNoWindow := TRUE;
ProcessStartInfo.WindowStyle := ProcessWindowStyle.Hidden;
ProcessStartInfo.RedirectStandardOutput := TRUE;
Process := Process.Process;
Business Applications communities