d634c724dd6cfaf4c414efb93742cc72474060ef
Guides/MVC-Integration.md
| ... | ... | @@ -26,10 +26,7 @@ This guide is not universal, nor does it describe a complete integration. There |
| 26 | 26 | |
| 27 | 27 | Right click on 'References' under project name in Solution Explorer window, then click 'Add Reference'. |
| 28 | 28 | |
| 29 | -Click the 'Browse' button and browse to \mvc5r3\bin, where Izenda.AdHoc.dll and log4net.dll are. Add them to reference. |
|
| 30 | - |
|
| 31 | - |
|
| 32 | - |
|
| 29 | +Click the 'Browse' button and browse to \mvc5r3\bin, where Izenda.AdHoc.dll is. Add it to reference. |
|
| 33 | 30 | |
| 34 | 31 | ###Step 3. Add IzendaStaticResourcesController.cs and IzendaReportingController.cs to the project |
| 35 | 32 | |
| ... | ... | @@ -47,7 +44,7 @@ Ex) if the namespace is in other controller file is ABC.Controllers, then MVC3SK |
| 47 | 44 | |
| 48 | 45 | ###Step 5. Add Reporting and Resources folders to the project |
| 49 | 46 | |
| 50 | -**a.** Add 'Reporting'and 'Resources'from \mvc5r3 to project by dragging and dropping them in Solution Explorer as below |
|
| 47 | +**a.** Add the folders 'Reporting' and 'Resources' from \mvc5r3 to project by dragging and dropping them in Solution Explorer as below. You should also copy or create a 'Reports' folder. |
|
| 51 | 48 | |
| 52 | 49 |  |
| 53 | 50 | |
| ... | ... | @@ -55,14 +52,6 @@ Ex) if the namespace is in other controller file is ABC.Controllers, then MVC3SK |
| 55 | 52 | |
| 56 | 53 |  |
| 57 | 54 | |
| 58 | -**c.** Copy /Resources folder from the root of the application into the /Reporting folder. This will create two copies of the Resources folder, one in the root and another under the Reporting folder. (If the folder "/Reporting/Resources" exists, overwrite the existing folder with the new copy.) |
|
| 59 | - |
|
| 60 | - |
|
| 61 | - |
|
| 62 | -**d.** Copy rs.aspx from /Reporting and paste it in /Resources/html as below |
|
| 63 | - |
|
| 64 | - |
|
| 65 | - |
|
| 66 | 55 | |
| 67 | 56 | **** If Izenda toolbar icons don't appear, check if Reporting folder contains rs.aspx and Resources folder **** |
| 68 | 57 | |
| ... | ... | @@ -356,6 +345,8 @@ namespace Sample_MVCApp |
| 356 | 345 | { |
| 357 | 346 | protected void Application_Start() |
| 358 | 347 | { |
| 348 | + RouteTable.Routes.MapPageRoute("rs.aspx", "{*aspx}", "~/Reporting/rs.aspx", false, null, new RouteValueDictionary { { "aspx", new SpecificFileRouterConstraint("aspx", "rs.aspx") } }); |
|
| 349 | + RouteTable.Routes.MapPageRoute("rp.aspx", "{*aspx}", "~/Reporting/rp.aspx", false, null, new RouteValueDictionary { { "aspx", new SpecificFileRouterConstraint("aspx", "rp.aspx") } }); |
|
| 359 | 350 | AreaRegistration.RegisterAllAreas(); |
| 360 | 351 | |
| 361 | 352 | WebApiConfig.Register(GlobalConfiguration.Configuration); |