Hi all,
I am getting the following error while trying to save the report as pdf using save dialog .
Please let me know how to resolve it ?
" Error opening the file ‘C:\Program Files\Microsoft Dynamics AX\.0\client\appl\standard\’.
File Not found. "
Below is My Code :
public void init()
{
this.printJobSettings().setTarget(PrintMedium::File);
this.printJobSettings().preferredFileFormat(PrintFormat::PDF);
this.printJobSettings().fileName(fileName);
super();
}
}
----------------------------------------------------------------------------------------------
public PrintMedium setTarget(PrintMedium _target)
{
PrintMedium ret;
ret = super(PrintMEdium::File);
return ret;
}
----------------------------------------------------------------------------------------------------
public boolean printerSettings(int _showWhat=-1)
{
boolean ret;
ret = super(_showWhat);
return ret;
}
-----------------------------------------------------------------------------------------------------------
public Object dialog(Object _dialog)
{
Dialog d = super(_dialog);
df = d.addFieldValue(typeid(FileNameSave), "Select file to save");
d.filenameLookupFilter(["PDF Files","*.pdf"]);
d.filenameLookupTitle("Select filename and type");
df.value(df.value());
fileName = df.value();
return d;
}
-------------------------------------------------------------------------------------------------------
public class ReportRun extends ObjectRun
{
CompanyInfo companyInfo;
tmp_InventTableModule tModules;
test_PrintDataCustPrcList testPrcList;
// dialog d ;//= new dialog("Select file");
PrintJobSettings printJobSettings;
dialogField df;
FileName fileName;
}
---------------------------------------------------------------------------------------------------------
public void run()
{
this.printJobSettings().setTarget(PrintMedium::File);
this.printJobSettings().fileName(fileName);
this.printJobSettings().format(PrintFormat::PDF);
super();
}
---------------------------------------------------------------------------------------
PLEASE LET ME KNOW WHAT AM I DOING WRONG HERE . I DON'T NO WHY THAT ERROR IS COMING UP AND HOW TO RESOLVE IT ?
PLEASE HELP
*This post is locked for comments