HI,
I get below error when I try to save a SSRS report as a file in AX365 on a click with the below code.
Please help me out!!
[FormControlEventHandler(formControlStr(InventQualityOrderTable, ExportToPdf), FormControlEventType::Clicked)]
public static void ExportToPdf_OnClicked(FormControl sender, FormControlEventArgs e)
{
FormRun fr = sender.formRun();
FormDataSource fds = fr.dataSource(formDataSourceStr(InventQualityOrderTable, InventQualityOrderTable));
InventQualityOrderTable inventQualityOrderTable = fds.cursor();
SrsReportRunController controller = new SrsReportRunController();
SRSPrintDestinationSettings srsPrintDestinationSettings;
Args args = new Args();
args.record(inventQualityOrderTable);
controller.parmReportName(ssrsReportStr(XX_InventQualityOrder,QualityOrder));
controller.parmArgs(args);
srsPrintDestinationSettings = controller.parmReportContract().parmPrintSettings();
srsPrintDestinationSettings.printMediumType(SRSPrintMediumType::File);
srsPrintDestinationSettings.fileFormat(SRSReportFileFormat::PDF);
srsPrintDestinationSettings.overwriteFile(true);
srsPrintDestinationSettings.fileName(@"C:\InventQualityOrder.pdf");
controller.parmShowDialog(false);
controller.startOperation();
}
Unable to connect to the remote server at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.PerformOperation(CloudStorageAccount storageAccount, String tableName, Func`1 operation) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.AddRecord[T](CloudStorageAccount storageAccount, String tableName, T record) at Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitStorage.UploadData(SharedServiceUnitStorageData data, Stream stream) at Dynamics.AX.Application.SRSFileUploadTempStorageStrategy.completeUpload(Boolean _blobAlreadyExists, String _uniqueFileName, String _originalFilename, String _fileId, Stream _stream, String _contentType, Boolean @_contentType_IsDefaultSet) in xppSource://Source/ApplicationFoundation\AxClass_SRSFileUploadTempStorageStrategy.xpp:line 177
*This post is locked for comments