Rotativa Windows Server

Waktu menjalankan Rotativa di Windows Server Pertamina, muncul error. Rotativa yang digunakan dari NuGet versi 1.6.4. Solusinya dengan mengganti wktohtml library pada folder Rotativa dengan versi 1.6.3. Bisa di-download di https://drive.google.com/file/d/0BzI_u_O3vUM1aEppb3ZVZXNsc28/view https://github.com/webgio/Rotativa/issues/23

Rotativa

Install Rotativa menggunakan NuGet Pilih yang dibuat oleh Giorgio Bozio. Contoh: [code language=”csharp”] [HttpPost] public ActionResult Download(ManufacturerDownloadFormStub model) { List<int> subcategoryId = model.GetSubcategoryIdArray(); DisplayFormatHelper dfh = new DisplayFormatHelper(); return new Rotativa.ActionAsPdf("ManufacturerPdf", new { subcategoryId = model.SubcategoryIdString }) { FileName = "AML (" + DateTime.Now.ToString(dfh.FullDateFormat) + ").pdf", PageOrientation = Rotativa.Options.Orientation.Portrait, PageSize = Rotativa.Options.Size.A4, CustomSwitches = string.Format("–footer-right…