Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > บทความจากสมาชิก > The maximum report processing jobs limit configured by your system administrator has been reached.



 
Clound SSD Virtual Server

The maximum report processing jobs limit configured by your system administrator has been reached.

The maximum report processing jobs limit configured by your system administrator has been reached. วันนี้มีโอกาศใช้ Crystal Report และ Deploy ไปใช้งานจริงบน Site ของลูกค้า แต่อันเนื่องจากต้องยอมรับเลยว่า ยังไม่เคยใช้ Crystal Report จริง ๆ จัง ๆ ซะที และก่อนที่จะ Deploy ก็มั่นใจเหลือเกินระบบเราจะ Deploy นั้นผ่านการ Test มาร่วมเดือน ไม่มีปัญหาอย่างแน่นอน แต่ที่ไหนได้ ไปใช่ได้ 2 วัน เกิด Error ที่ User ไม่สามารถ Print ได้ ทำเอาเหงือตกซะ ว่าเป็นเพราะอะไร หรือว่าเจ้าตัว Crystal Report มันมี Limit License ไว้ให้ใช้ได้แค่นั้น

Crystal Report Error

Crystal Report : The maximum report processing jobs limit configured by your system administrator has been reached.


แต่พอลองหาข้อมูลซะพักพบว่า เนื่องจากตัว Crystal Report เวลาจะมีการ Preview มันจะต้องสร้าง Job Process และ Temp ของไฟล์ตัว Report มาในแต่ล่ะครั้ง และจะ Limit ไว้ที่ (Default) 75 ครั้ง ฉะนั้นถ้าเราไม่ได้ Clear ตัว Job Process ที่กระทำลงไป เมื่อครบ 75 ครั้งตัวก็จะเต็ม ไม่สามารถ Print ไปต่อได้

สรุปสุดท้ายเพิ่มคำสั่ง

rpt.Close();
rpt.Dispose();
GC.Collect();


Code (C#)
private ReportDocument rpt; protected void Page_Load(object sender, EventArgs e) { rptCrystal.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None; rpt = new ReportDocument(); rpt.Load(Server.MapPath("report.rpt")); rpt.SetParameterValue("sParameters", "Value"); this.rptCrystal.ReportSource = rpt; } protected override void OnUnload(EventArgs e) { base.OnUnload(e); rpt.Close(); rpt.Dispose(); GC.Collect(); }


Code (VB.Net)
Private rpt As ReportDocument Protected Sub Page_Load(sender As Object, e As EventArgs) rptCrystal.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None rpt = New ReportDocument() rpt.Load(Server.MapPath("report.rpt")) rpt.SetParameterValue("sParameters", "Value") Me.rptCrystal.ReportSource = rpt End Sub Protected Overrides Sub OnUnload(e As EventArgs) MyBase.OnUnload(e) rpt.Close() rpt.Dispose() GC.Collect() End Sub


และหลังจาก Deploy ใหม่ลอง Test ไป 100 กว่าฉบับ ถือว่าผ่านไปด้วยดี

อ่านเพิ่มเติม
Go to : ลิขสิทธิ์ของ License Crystal Report for Visual Studio ที่โหลดมาใช้กับ VS 2010







   
Share
Bookmark.   

  By : TC Admin
  Article : บทความเป็นการเขียนโดยสมาชิก หากมีปัญหาเรื่องลิขสิทธิ์ กรุณาแจ้งให้ทาง webmaster ทราบด้วยครับ
  Score Rating :
  Create Date : 2014-10-15
  Download : No files
Sponsored Links
ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 03
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่