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 > ASP > ASP Forum > สอบถาม ASP กับ Crystal Report รบกวนสอบถามผู้รู้หน่อยครับ มีปัญหาว่า เมื่อก่อนผมใช้ ASP กับ Crystal Report 9 บน windows2000



 

สอบถาม ASP กับ Crystal Report รบกวนสอบถามผู้รู้หน่อยครับ มีปัญหาว่า เมื่อก่อนผมใช้ ASP กับ Crystal Report 9 บน windows2000

 



Topic : 029078



โพสกระทู้ ( 21 )
บทความ ( 0 )



สถานะออฟไลน์




รบกวนสอบถามผู้รู้หน่อยครับ มีปัญหาว่า เมื่อก่อนผมใช้ ASP กับ Crystal Report 9 บน windows2000 server ใช้ได้ปกติ แต่พอเปลี่ยนมาเป็น Windows 2003 Server แล้วทำไม Preview ออกมาหน้ากระดาษเป็นแนวตั้งหมดเลย ทั้งที่ set ไว้แนวนอน แก้ไงดีครับ



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-07-10 21:52:37 By : fangthaicreate View : 5245 Reply : 4
 

 

No. 1



โพสกระทู้ ( 367 )
บทความ ( 0 )



สถานะออฟไลน์


ขอดูมั่งได้มั้ยคับ การเรียกใช้และ Eveloment ของ Crystal report
เราอาจช่วงท่าน สู่จุดหมายอันไกลโพ้นได้นะ






Date : 2009-07-24 04:37:58 By : Joe_Dev
 


 

No. 2

Guest


คุณ R_fang

ขอตัวอย่างโค๊ด ASP กับ Crystal Report 9 หน่อยได้ไม๊คะ
คือตอนนี้ Code เดิมใช้ได้กับ Crystal Report 8.5
แต่พอเปลี่ยนมาใช้ Crystal Report 9 เกิด error

CRAXDRT Error Occured on Server. Error Number: -2147221005 Error Description: 006~ASP 0177~Server.CreateObject Failed~800401f3

รบกวนด้วยคะ
ขอบคุณคะ
Date : 2009-10-07 17:31:56 By : yee
 

 

No. 3

Guest


<%@language = vbscript%>
<%
Set oApp = CreateObject("CrystalRuntime.Application").
reportname = "announceReport.rpt" - reportname is the string variable which would pass the rpt file

to the OpenReport method

'CREATE THE APPLICATION OBJECT
'======================================
'Creates the application object (session("oApp")) which loads the Crystal Reports automation server

(cpeaut31.dll) into the memory
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("Crystal.CRPE.Application")
End If

' CREATE THE REPORT OBJECT
'================================
'The Report object is created by calling the Application object's OpenReport method.

Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend


'OPEN THE REPORT (but destroy any previous one first)
'======================================
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if

set Session("options") = Session("oApp").options
Session("options").MatchLogonInfo = 1

Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1)

set crtable1 = session("oRpt").Database.Tables.Item("hosp_unit_all")
crtable1.SetLogonInfo "icom", " ", "hr", "hr"

set session("oRptOptions") = Session("oRpt").Options
session("oRptOptions").MorePrintEngineErrorMessages = 0

'These lines disable the Error reporting mechanism included the built into the
'Crystal Report Print Engine (CRPE32.DLL)

'=============================================================
' Retrieve the Records and Create the "Page on Demand" Engine Object
'

On Error Resume Next
session("oRpt").ReadRecords
If Err.Number <> 0 Then
Response.Write "An Error has occured on the server in attempting to access the data source"
Else

If IsObject(session("oPageEngine")) Then
set session("oPageEngine") = nothing
End If
set session("oPageEngine") = session("oRpt").PageEngine
End If
'Response.Write "An Error has occured on the server in attempting to access the data source"
' INSTANTIATE THE CRYSTAL REPORTS SMART VIEWER
%>


Go to : ติดตั้ง Crystal Report บน Web Server Windows 2003 (Crystal Report XI 11 + ASP)
Date : 2009-10-08 10:17:08 By : cr
 


 

No. 4



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Go to : รบกวนขอตัวอย่าง Code ASP เรียกใช้งาน Crystal Report 8.5 หน่อยครับ

Go to : ติดตั้ง Crystal Report บน Web Server Windows 2003 (Crystal Report XI 11 + ASP)
Date : 2011-08-25 06:28:56 By : webmaster
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : สอบถาม ASP กับ Crystal Report รบกวนสอบถามผู้รู้หน่อยครับ มีปัญหาว่า เมื่อก่อนผมใช้ ASP กับ Crystal Report 9 บน windows2000
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
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 อัตราราคา คลิกที่นี่