├── LICENSE ├── README.md ├── example.html ├── lib ├── d3.js └── jquery-2.1.3.js ├── reports ├── OrdersWithDrillthrough.rdlc ├── OrdersWithSubreport.rdlc └── ReportWithCustomAssembly.rdlc └── src ├── rdljs.core.js ├── rdljs.js ├── rdljs.plugin.abstract.js ├── rdljs.plugin.html.css ├── rdljs.plugin.html.js ├── rdljs.plugin.svg.js └── rdljs.util.js /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 andreventuravale 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rdljs - ( deprecated due to lack of tests ) 2 | 3 | TODO: 4 | 5 | - [ ] rewrite with TDD; 6 | - [ ] find good report samples for integrated tests; 7 | 8 | --- 9 | 10 | A lightweight javascript library for Microsoft RDL/RDLC reporting rendering 11 | 12 | --- 13 | 14 | This is a work in progress project, waiting for contributors... 15 | 16 | I didn't have much time to set the things up for testing, so to see a demo just point your webserver to the top level folder and access the "example.html" file... 17 | 18 | Currently I'm using this chrome extension as a nice and practical way to serve the content: https://github.com/kzahel/web-server-chrome 19 | -------------------------------------------------------------------------------- /example.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 28 | 29 |
30 |
31 | 32 | 33 | 34 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /reports/OrdersWithDrillthrough.rdlc: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | SQL 7 | 8 | 9 | c78adb91-67d9-4585-9468-62c614ea5707 10 | 11 | 12 | 13 | 14 | 15 | 16 | OrderID 17 | System.Int32 18 | 19 | 20 | OrderDate 21 | System.DateTime 22 | 23 | 24 | RequiredDate 25 | System.DateTime 26 | 27 | 28 | ShippedDate 29 | System.DateTime 30 | 31 | 32 | ShipVia 33 | System.Int32 34 | 35 | 36 | Freight 37 | System.Decimal 38 | 39 | 40 | ShipName 41 | System.String 42 | 43 | 44 | ShipAddress 45 | System.String 46 | 47 | 48 | ShipCity 49 | System.String 50 | 51 | 52 | ShipRegion 53 | System.String 54 | 55 | 56 | ShipPostalCode 57 | System.String 58 | 59 | 60 | ShipCountry 61 | System.String 62 | 63 | 64 | CompanyName 65 | System.String 66 | 67 | 68 | ContactName 69 | System.String 70 | 71 | 72 | ContactTitle 73 | System.String 74 | 75 | 76 | Address 77 | System.String 78 | 79 | 80 | City 81 | System.String 82 | 83 | 84 | Region 85 | System.String 86 | 87 | 88 | PostalCode 89 | System.String 90 | 91 | 92 | Country 93 | System.String 94 | 95 | 96 | Phone 97 | System.String 98 | 99 | 100 | Fax 101 | System.String 102 | 103 | 104 | 105 | DummyDataSource 106 | /* Local Query */ 107 | true 108 | 109 | 110 | DataSet1 111 | C:\Users\cephalin\Desktop\ReportViewerWebSamples\SupplyingData\OrderData.xsd 112 | Orders 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 6.125in 123 | 124 | 125 | 126 | 127 | 4.5in 128 | 129 | 130 | 131 | 132 | 133 | 134 | true 135 | true 136 | 137 | 138 | 139 | 140 | Invoice 141 | 145 | 146 | 147 | 161 | 162 | 163 | true 164 | true 165 | 166 | 167 | 168 | 169 | =Fields!OrderID.Value 170 | 176 | 177 | 178 | OrderID 179 | 1.5873cm 180 | 2.53968cm 181 | 0.63492cm 182 | 3.80953cm 183 | 1 184 | 190 | 191 | 192 | true 193 | true 194 | 195 | 196 | 197 | 198 | Order ID: 199 | 217 | 218 | 219 | true 220 | true 221 | 222 | 223 | 224 | 225 | Order Date: 226 | 244 | 245 | 246 | true 247 | true 248 | 249 | 250 | 251 | 252 | =Fields!OrderDate.Value 253 | 256 | 257 | 258 | 261 | 262 | 263 | OrderDate 264 | 0.625in 265 | 4in 266 | 0.25in 267 | 1.75in 268 | 4 269 | 275 | 276 | 277 | 278 | 279 | true 280 | true 281 | 282 | 283 | 284 | 285 | Bill To: 286 | 289 | 290 | 291 | 305 | 306 | 307 | true 308 | true 309 | 310 | 311 | 312 | 313 | =Fields!ContactName.Value 314 | 332 | 333 | 334 | true 335 | true 336 | 337 | 338 | 339 | 340 | =Fields!ContactTitle.Value 341 | 358 | 359 | 360 | true 361 | true 362 | 363 | 364 | 365 | 366 | =Fields!CompanyName.Value 367 | 384 | 385 | 386 | true 387 | true 388 | 389 | 390 | 391 | 392 | =Fields!Address.Value 393 | 410 | 411 | 412 | true 413 | true 414 | 415 | 416 | 417 | 418 | =Fields!City.Value 419 | 436 | 437 | 438 | true 439 | true 440 | 441 | 442 | 443 | 444 | =Fields!Country.Value 445 | 462 | 463 | 464 | ContentsOnly 465 | 1in 466 | 0.125in 467 | 1.75in 468 | 2.875in 469 | 5 470 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | true 480 | true 481 | 482 | 483 | 484 | 485 | Ship To: 486 | 489 | 490 | 491 | 504 | 505 | 506 | true 507 | true 508 | 509 | 510 | 511 | 512 | =Fields!ShipName.Value 513 | 530 | 531 | 532 | true 533 | true 534 | 535 | 536 | 537 | 538 | =Fields!ShipAddress.Value 539 | 556 | 557 | 558 | true 559 | true 560 | 561 | 562 | 563 | 564 | =Fields!ShipCity.Value 565 | 582 | 583 | 584 | true 585 | true 586 | 587 | 588 | 589 | 590 | =Fields!ShipCountry.Value 591 | 608 | 609 | 610 | ContentsOnly 611 | 1in 612 | 3.125in 613 | 1.75in 614 | 2.875in 615 | 6 616 | 619 | 620 | 621 | 622 | 623 | true 624 | true 625 | 626 | 627 | 628 | 629 | See order details 630 | 631 | 632 | 633 | 634 | OrderDetails 635 | 636 | 637 | =Fields!OrderID.Value 638 | 639 | 640 | 641 | 642 | 643 | 644 | 649 | 650 | 651 | 663 | 664 | 2pt 665 | 2pt 666 | 2pt 667 | 2pt 668 | 669 | 670 | 671 | true 672 | 145 | 146 | 147 | 161 | 162 | 163 | true 164 | true 165 | 166 | 167 | 168 | 169 | =Fields!OrderID.Value 170 | 176 | 177 | 178 | OrderID 179 | 1.5873cm 180 | 2.53968cm 181 | 0.63492cm 182 | 3.80953cm 183 | 1 184 | 190 | 191 | 192 | true 193 | true 194 | 195 | 196 | 197 | 198 | Order ID: 199 | 217 | 218 | 219 | OrderDetails 220 | 221 | 222 | =Fields!OrderID.Value 223 | 224 | 225 | true 226 | 2.875in 227 | 0.125in 228 | 1.5in 229 | 5.875in 230 | 3 231 | 259 | 260 | 261 | true 262 | true 263 | 264 | 265 | 266 | 267 | =Fields!OrderDate.Value 268 | 271 | 272 | 273 | 276 | 277 | 278 | OrderDate 279 | 0.625in 280 | 4in 281 | 0.25in 282 | 1.75in 283 | 5 284 | 290 | 291 | 292 | 293 | 294 | true 295 | true 296 | 297 | 298 | 299 | 300 | Bill To: 301 | 304 | 305 | 306 | 320 | 321 | 322 | true 323 | true 324 | 325 | 326 | 327 | 328 | =Fields!ContactName.Value 329 | 347 | 348 | 349 | true 350 | true 351 | 352 | 353 | 354 | 355 | =Fields!ContactTitle.Value 356 | 373 | 374 | 375 | true 376 | true 377 | 378 | 379 | 380 | 381 | =Fields!CompanyName.Value 382 | 399 | 400 | 401 | true 402 | true 403 | 404 | 405 | 406 | 407 | =Fields!Address.Value 408 | 425 | 426 | 427 | true 428 | true 429 | 430 | 431 | 432 | 433 | =Fields!City.Value 434 | 451 | 452 | 453 | true 454 | true 455 | 456 | 457 | 458 | 459 | =Fields!Country.Value 460 | 477 | 478 | 479 | ContentsOnly 480 | 1in 481 | 0.125in 482 | 1.75in 483 | 2.875in 484 | 6 485 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | true 495 | true 496 | 497 | 498 | 499 | 500 | Ship To: 501 | 504 | 505 | 506 | 519 | 520 | 521 | true 522 | true 523 | 524 | 525 | 526 | 527 | =Fields!ShipName.Value 528 | 545 | 546 | 547 | true 548 | true 549 | 550 | 551 | 552 | 553 | =Fields!ShipAddress.Value 554 | 571 | 572 | 573 | true 574 | true 575 | 576 | 577 | 578 | 579 | =Fields!ShipCity.Value 580 | 597 | 598 | 599 | true 600 | true 601 | 602 | 603 | 604 | 605 | =Fields!ShipCountry.Value 606 | 623 | 624 | 625 | ContentsOnly 626 | 1in 627 | 3.125in 628 | 1.75in 629 | 2.875in 630 | 7 631 | 634 | 635 | 636 | 637 | 638 | true 639 | 19 | 20 | 21 | Textbox1 22 | 0.62583in 23 | 0.205in 24 | 0.25in 25 | 3.90625in 26 | 30 | 2pt 31 | 32 | 2pt 33 | 2pt 34 | 2pt 35 | 2pt 36 | 37 | 38 | 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | =MyLibrary.ExternalContent.GetPage(New Uri(Parameters!PageUrl.Value)) 46 | HTML 47 | 63 | 2pt 64 | 65 | 2pt 66 | 2pt 67 | 2pt 68 | 2pt 69 | 70 | 71 | 72 | true 73 | true 74 | 75 | 76 | 77 | 78 | File content 79 | 84 | 85 | 86 | 98 | 99 | 2pt 100 | 2pt 101 | 2pt 102 | 2pt 103 | 104 | 105 | 106 | true 107 | true 108 | 109 | 110 | 111 | 112 | Parsed Web page text 113 | 118 | 119 | 120 | 132 | 133 | 2pt 134 | 2pt 135 | 2pt 136 | 2pt 137 | 138 | 139 | 140 | 2.0625in 141 |