PDF Generated using REPORT DEFINITION App Package is Password Protected automatically. Need to Remov
Hello Everyone,
I am trying to generate a PDF File using the below code. The code is located on the FIELD CHANGE OF a PUSH BUTTON. There is no app engine or any parameters it needs.
import PSXP_RPTDEFNMANAGER:*;
&LanguageCd = "ENG";
&AsOfDate = %Date;
&OutFormat = "PDF";
&MyReportName = "PC_0058";
&MyTemplate = "PC_0058";
&sDestinationPath = "\\FMS\Apps\PeopleSoft\Test\Accounting\TESTING";
/* Declare and Instantiate (construct) your Report Definition Object */
Local PSXP_RPTDEFNMANAGER:ReportDefn &oReportDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&MyReportName);
/* Get a handle on your Report Definition */
&oReportDefn.Get();
/* Since there is a prompt to the query used in this report, you need to */
/* provide the value for the prompt */