How to Delete report file from your local drive in Ax 2012

Description:- 

SQL Server Reporting Services is the primary reporting platform for Microsoft Dynamics AX. Reporting Services is a server-based reporting platform that includes a complete set of tools to create, manage, and deliver reports, and APIs that enable you to integrate or extend data and report processing in custom applications. Reporting Services tools work within the Microsoft Visual Studio environment and are fully integrated with SQL Server tools and components.

In a Visual Studio reporting project for Microsoft Dynamics AX, you can define a report in a report model. A report consists of a collection of items, such as datasets, parameters, images, and report designs. A model can contain more than one report.

To add a report

In Solution Explorer, right-click the reporting project that you want to add a report to, point to Add, and then click Report. The report model displays in Model Editor, and the node for the report appears expanded in Model Editor.

The next steps are to define the elements that make up the report. The following list provides links to topics that describe how to define the report elements using the Visual Studio tools for Microsoft Dynamics AX.

1. Add detail to the report. You can work with data regions, display an image, and add a report or style template.
2. Add interactive features like the following:

    1. Drill down and drill up actions
    2. Document map
    3. Report parameters
    4. Dynamic filters
    5. Report filters
    6. Link to another report
    7. Link to a URL or a form
    8. Specify a chart axis value

3. Localize the report by using labels for localizable text.   
4. Deploy the report to the report server.
5. View the report in Report Manager using the URL: http://[MachineName]/reports
6. View the report in Microsoft Dynamics AX by creating a menu item for the report.

To delete a report

1. In Solution Explorer or Model Editor, right-click the report that you want to delete, and then click Delete.

public void deleteReportFile(str _ReportPath)
{
    str         ReportPath = _ReportPath;
    if(!ReportPath)
        warning("No file in local to remove");
    else
        WinAPI::deleteFile(@ReportPath);
}

Related Posts

Previous
Next Post »

Thanks for comments.....