Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Crystal reports barcode shrink when generate pdf from asp.net mvc

$
0
0

im use following code to generate pdf from crystal report in ASP.NET MVC platform


[HttpGet]   public ActionResult ClassCard()   {   ReportDocument rd = new ReportDocument();  rd.Load(Path.Combine(Server.MapPath("~/Reports"), "ClassCard.rpt"));  rd.SetParameterValue("ClassName", "Kandy");  rd.SetParameterValue("Type", "Group Theory");  rd.SetParameterValue("year", "2016");  rd.SetParameterValue("Student", "KDG0012");  rd.SetDatabaseLogon("DB_74931_rmsecon_user", "snb123");   Response.Buffer = false;   Response.ClearContent();   Response.ClearHeaders();   try   {   Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);  stream.Seek(0, SeekOrigin.Begin);   return File(stream, "application/pdf", "EverestList11.pdf");   }   catch (Exception ex)   {   throw ex;   }   }

this give me pdf as below


http://i.stack.imgur.com/hB2Qi.png

but as you see the barcode is shrinked ,how im solve this problem in ASP.NET MVC enviroment

i saw most people say add registy key ,but i cannot do this coz this is asp.net mvc web application and im going host this app on sheared server

if im Add below regiter keys the problem will solve only for if im generate crystal report in local desktop app please help

 

 



Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>