Load crystal reports problem
Hello Experts
i created one report and try to load it but it give msg "load report failed" this is my code i used database as xml file and dataset as a table
Try
Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\HOReports\" & rptName
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
'dim ss as String ="C:\Documents and Settings\Student\Desktop\9 vilas1.4\bin\HOReports\"
rptDoc.Load(rptPath)
For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\HOReports\" & SourceXML
Next
For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
oSubReport = rptObject
rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\HOReports" & SourceXML
Next
End If
Next
Next
error on this my code
rptDoc.Load(rptPath)
As a test, hard code the path, see if that helps.
Ensure win\temp dir has read / write permissions.
Try on of our sample apps from here;
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
vbnet_win_simplepreviewreport will be best.
What version of CR are you using?
What updates have you applied?
What version of .NET are you using?
Ludek
Similar Messages
-
Needs a solution for loading Crystal Report
Hi.....
I have already desiged & loaded crystal reports through SAP B1 Main Menu.
But I need help (Code in C#.Net) for loading a crystal report template(already created) for a System form (eg; A/R Invoice) immediately after the form load by a menu click(means through UI interface)
and report generated by identifying the Forms Document Number.HI...
See this following link
https://www.sdn.sap.com/irj/sdn/businessone?rid=/webcontent/uuid/807d22cb-cb1d-2b10-8794-fb76d7feca88#section2
Regards
Billa 2007 -
Problem while loading Crystal report
Hi all
I'm Harinathan. I'm developing vb.net application with crystal report.Good for you Nathan.
Have a good day,
Ludek -
Visual Studio 2005, embedded Crystal Report problem
I am very new at .NET, and this is my first post to this forum.
I've created a Crystal Report within a project using Visual Studio 2005 Professional Edition, on a Windows XP machine. I set the report as the ReportSource for a CrystalReportViewer on the main form. I can see data in the report in design view when I right-click on any of the fields and click "Browse Field Data". But when I preview the report, or run it in the application, all I see are the column headings and report title. I am hoping I am leaving out something obvious. I've researched this for two days without success.
The report's detail section is NOT suppressed, btw.
FYI (although I think it might not be relevant, because I don't see the data when I preview it in Visual Studio either) the report is displayed in the application when a button is clicked, as follows:
Private Sub cmdRunLog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRunLog.Click
CrystalReportViewer1.DisplayToolbar = True
cmdRunLog.Text = "Hide Run Log"
cmdUpload.Enabled = False
cmdReports.Enabled = False
cmdManualRun.Enabled = False
CrystalReportViewer1.Visible = True
CrystalReportViewer1.Height = 600
CrystalReportViewer1.Width = 1000
CrystalReportViewer1.Left = 10
Dim strReportSQL As String = "Select * From dbo.PositivePayRunLog"
Dim DA As New SqlDataAdapter(strReportSQL, conPP)
Dim DS As New DataSet
'Variable to assign the report name
Dim strReportPath As String
DA.Fill(DS)
strReportPath = "c:\Positive Pay\PositivePayRunLog.rpt"
If Not IO.File.Exists(strReportPath) Then
_ErrorText = "Unable to locate report file: " & strReportPath
' Throw (New Exception("Unable to locate report file:" & vbCrLf & strReportPath))
GoTo cmdRunLog_Click_Error
End If
Dim rptDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDocument.Load(strReportPath)
rptDocument.SetDataSource(DS.Tables(0))
rptDocument.Refresh()
CrystalReportViewer1.ShowRefreshButton = False
CrystalReportViewer1.ShowCloseButton = False
CrystalReportViewer1.ShowGroupTreeButton = False
CrystalReportViewer1.ReportSource = rptDocument
end sub
I'm hoping that this is a common problem with an easy answer
Thanks,
John Sandin>
Jason Everly wrote:
> Did you design the report using OLEDB or ODBC instead of against the schema of the dataset you are passing? It could be seeing data from the database when browsing.
>
> Technically you should design the reports against the schema of the dataset you are going to be passing, not against ODBC or OLEDB.
>
> You can usually get away with passing datasets to a report created against OLEDB, but if issues occur then you need to redesign them against the ds schema.
>
> Jason
I have done both, but I was currently using OLEDB.
I redesigned the report to use a dataset containing the correct data. Now, when I browse the fields, I see nothing. When I preview the report, I see what appears to be dummy data (a list of colors, etc).
But the GOOD news is: When I run the report in the application, I see the correct data!
Thanks! I think I'm good to go now. I will also apply the other suggestions, and try to simplify things. -
Error when load Crystal Report
When I preview a report in Crystal Report Manager, I meet this error as following.
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
异常文本 **************
CrystalDecisions.Shared.CrystalReportsException: 加载报表失败。 ---> System.Runtime.InteropServices.COMException (0x80004005): 设备未就绪。 在 CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- 内部异常堆栈跟踪的结尾 ---
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
在 SAP_CR.MyForms.frmReportViewer.ConfigureCrystalReports()
在 SAP_CR.MyForms.frmReportViewer.frmReportViewer_Load(Object sender, EventArgs e)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3623 (GDR.050727-3600)
基本代码: file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
SAP_CR
程序集版本: 2.0.0.7
Win32 版本: 2.0.0.7
基本代码: file:///d:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/SAP_CR.exe
Interop.SAPbouiCOM
程序集版本: 8.0.0.0
Win32 版本: 8.0.0.0
基本代码: file:///d:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/Interop.SAPbouiCOM.DLL
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3623 (GDR.050727-3600)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3620 (GDR.050727-3600)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
CustomMarshalers
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
Interop.CR_Crypto
程序集版本: 6.0.0.0
Win32 版本: 6.0.0.0
基本代码: file:///d:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/Interop.CR_Crypto.DLL
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3082 (QFE.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Transactions
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
CrystalDecisions.Windows.Forms
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
CrystalDecisions.Shared
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.Shared/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
CrystalDecisions.ReportSource
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
CrystalDecisions.CrystalReports.Engine
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/12.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
System.Web
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3618 (GDR.050727-3600)
基本代码: file:///D:/windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
CrystalDecisions.Shared.resources
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/12.0.2000.0_zh-CHS_692fbea5521e1304/CrystalDecisions.Shared.resources.dll
CrystalDecisions.Windows.Forms.resources
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms.resources/12.0.2000.0_zh-CHS_692fbea5521e1304/CrystalDecisions.Windows.Forms.resources.dll
CrystalDecisions.ReportAppServer.CommLayer
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.CommLayer/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.ClientDoc/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
CrystalDecisions.ReportAppServer.DataSetConversion
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.DataDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.Controllers/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.CubeDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
程序集版本: 12.0.1100.0
Win32 版本: 12.1.1100.882
基本代码: file:///D:/windows/assembly/GAC/CrystalDecisions.ReportAppServer.ReportDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
程序集版本: 12.0.1100.0
Win32 版本: 12.1.0.882
基本代码: file:///D:/windows/assembly/GAC/BusinessObjects.Licensing.KeycodeDecoder/12.0.1100.0__692fbea5521e1304/BusinessObjects.Licensing.KeycodeDecoder.dll
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3623 (GDR.050727-3600)
基本代码: file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
CrystalDecisions.CrystalReports.Engine.resources
程序集版本: 12.0.2000.0
Win32 版本: 12.1.2000.882
基本代码: file:///D:/windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/12.0.2000.0_zh-CHS_692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.resources.dll
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///D:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
This error occurred on server side and I changed the report directory to network directory. But still got error. Please advice. Thanks.
SimonHi Simon.......
Try this........
1. Uninstall the Crystal Report Version from Control Panel
2. Delete all the Temp Files
3. Go to Program Files--> Business Object Folder and delete this folder so that all the corrupted DLL files will get deleted.
4. Restart Machine Once again
5. Then Install Crystal Report freshly........
This may solve your problem........
Regards,
Rahul -
Runtime error when loading crystal report
Hi All,
I am new to crystal report with java. However i have developed report with java on eclips 3.4.2 and its loading successfully. Then i create a jar file and run it. then it will give error massage as shown below.
"Exception in thread "Command" java.lang.NoSuchMethodError: com.businessobjects.crystalreports.viewer.applet.ViewerUI.clearMessage()V
at com.businessobjects.crystalreports.viewer.applet.h.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)"
I have set "ReportViewer.jar";; file as bottom one of the jar list also, but problem is still there
Please help me to solve this problem
Thanks & Best Regards,
GamikaPlease re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with your directly
-
Crystal report problem in add-on(CrystalDecessions.Crystal Engine not found
HI All,
i am having a problem with crystal report not opening.
what is the solution to run the add-on it i ssaying that Crytsal Engine 10.5.3700.0 is not found in assenmly or specified path.
how can i resolve this error. do i need to add some file while creating the add-on.If so what i have to add.
Please help me.
Thanks & Regards
omprakashhi,
Check this thead
Problem with Crystal reports deisgner
Jeyakanthan -
Error while loading Crystal report
Professionals'
I have encountered an error while opening a crystal report 2008, I am using VB.NET 2005 with Business One. When I am running the source code it works fine. With ARD I am getting problem "Crystal report can not open". What should be the solution for that? I made ARD with all the required reports and added all DLL required for it.. Is it required to add any crystal report reference when creating ARD?
Thanks.Hi,
Are you checking the Addon in the Client or in the Working Machine....?
if it is client Machine install the Crystal Runtime and Check it out....
With Regards,
Madhu -
Crystal Reports - Problema ao gerar código de barras de boleto
Boa tarde a todos! Preciso de um help.
Desenvolvi o boleto de um cliente em Crystal Reports, mas estou encontrando um pequeno problema ao gerar determinados códigos. O número de código de barras é gerado corretamente pela DLL do BankSync. Até aí tudo bem.
Eu tenho a fonte Interleaved 2 of 5 - Regular, que é composta por 3 aquivos .ttf, e duas DLLs (que são responsáveis por converter o número gerado pelo BS em símbolos, para que a fonte traga corretamente a seqüência de barras).
Se eu tentar pegar o campo do B1 onde é gravado o número do código de barras (BarCodeNum) e colocar diretamente a fonte, naturalmente ele vai me trazer um código de barras errado, pois antes eu devo converter essa sequência numérica! Isso eu sei.
Estou utilizando a seguinte fórmula para a conversão no Crystal (que fica disponível depois que eu instalo as DLLs): BarcodeI2of5 (BarCodeNum) . Ela me traz como resultado uma seqüência de símbolos, que, ao colocá-la no corpo do documento e selecionar a fonte Interleaved 2 of 5 - Regular, ele me traz a sequência correta de barras!
Exemplo:
Número do código de barras: 03396517100000100009415546700000000002050005
O que a DLL da fonte retorna com a fórmula: «$Hb2!!!*JXOg!!!!#&!&¬
O código de barras sai perfeito e é lido por qualquer leitor ótico!
MAS AFINAL, QUAL O PROBLEMA?
Alguns caracteres provavelmente não estão disponíveis na fonte, ou a fórmula está gerando algum caractere que não deveria, que são:
Ç e ¶ (por enquanto só identifiquei esses)
E quando o resultado da fórmula traz esses caracteres em específico em alguma posição dela, o local onde ele deveria aparecer uma sequência de 5 barras, aparece aquele retângulo característico de quando a fonte não suporta algum acento ou caractere.
Agora eu não sei o que está errado:
- Ou a fórmula não deveria trazer de jeito nenhum os caracteres Ç e ¶ como resultado, e obviamente minha fonte não deveria suportá-los.
- Ou a fórmula está correta e deve realmente trazer os caracteres Ç e ¶ como resultado e o problema está na minha fonte, que deveria suportá-los.
Alguém já passou por este problema e pode me ajudar?
Qual das duas possibilidades é o que está acontecendo comigo?
Já tentei instalar outras DLLs e utilizar outras fontes, mas o problema persiste.
Preciso saber se o erro está na conversão que a DLL faz ou se está na fonte.
Quero deixar claro que isso não acontece em todos os boletos. É somente naqueles que a fórmula retorna os caracteres citados.
Muito obrigada!
Aline Garroux.Prezada Aline, boa tarde.
Baixa a fonte disponível neste link: http://www.netfontes.com.br/dow.php?cod=3of9_barcode, após coloque o arquivo "3OF9_NEW" na pasta "C:\Windows\Fonts" a qual será instalada automaticamente.
Espero ter auxiliado. -
Oracle - crystal report problem
Hi,
I have a package with few functions in it that returns certain values like name, address, state and zip
But while I am passing these valus to get the result on the crystal report viewer on a web browser, I am not getting any special characters like dashes, commas, parenthesis...ends up in error..
For example
lets say u have a function named 'address' returning something like "123 my address, NY 10001" (COMMA is the problem here)
I am trying to pass these values to the Crystal Report on the web thru input tag and found that I can only get up tp "123 my address".... the rest is being ignored.
HTP.p ('<input type="hidden" name=promptex-p_address@subreport value=" ' || address || ' ">' );
But when I removed the comma, its passing everything
Please help....and sorry if I am in the wrong section of the forum
SanThanks jim. I tried my best I can. Well I disabled the crystal report plugin for the web browser and tried to see the output and the entire returned value from the function is showing up...
But somehow when it processed inside crystal, its(comma) getting ignore with the rest of the line no matter what u do with the input
I am started to thinking like this is kind of a bug. But its my 2 cent thinking, if u guys have any suggestions please post it....
I know this is not a place for typical crystal report discussion area, but I posted it because oracle products are also involved in this matter
Thanks...
san -
Crystal Report - problem with passing parameters from J2EE app
i'm trying to pass a few parameters from my java application to a crystal report using the code below:
ParameterField pfield1 = new ParameterField();
ParameterField pfield2 = new ParameterField();
Values vals1 = new Values();
Values vals2 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
ParameterFieldDiscreteValue pfieldDV2 = new ParameterFieldDiscreteValue();
pfieldDV1.setValue("1056");//dform.getSelectedPeriod());
pfieldDV1.setDescription("termId");
vals1.add(pfieldDV1);
pfield1.setReportName("");
pfield1.setName("@p_termId");
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
// check here for null condition otherwise will throw nullpointerexception
pfieldDV2.setValue("elect");
pfieldDV2.setDescription("allocType");
vals2.add(pfieldDV2);
pfield2.setReportName("");
pfield2.setName("@p_allocType");
pfield2.setCurrentValues(vals2);
fields.add(pfield2);
this report calls a stored procedure (sql server). the report displays the data but the same is not the case when i call ity from my java application. with a single parameter it works fine (even though i get a "Some parameters are missing values" ERROR on the console. But when i pass, say 2 parameters, it give me the above error first and then "JDBC Error: Parameter 2 not set or registered for output"
Can anyone bail me out of this one?
thanks,
ptalkadI don't know about naming conventions, but could the @ signs in the variable names cause a problem?
How have you set up the mapping in Crystal?
Is this parameter 2 an "out" parameter returning a value?
What version of Java are you using?
Version of Crystal?
What JDBC driver? -
Crystal report problem when printing
We have developed a crystal report that adds extra pages when i physically try to print the report.
In the viewer it does not have the extra pages, but when i print it prints a blank page after every printed page.
The conclusion of one of the support employees was that extra lines are there when printing, but not when i view it in the crystal viewer.
Version : 11.0.0.1282.
The viewer im talking about is the integrated preview of crystal reports.
Any help is greatly appreciated.
Edited by: RolandWorms79 on Sep 2, 2009 10:41 PMLike I said, let me send the report to you so you can try. I have tried everything on this green earth to get that report to print correctly. I must say im getting very unsatisfied and frustrated because everyone seems to have the solution (either upgrade x or y), but nobody is willing to look at my report and try themselves.
I have created another call for support (which is ridiculous, because its my second call) and nobody has contacted me yet.
(the support process is flawed anyway, because i cant seem to be able to register my call anywhere, i miss some number ..)
Helping is very simple. If you think its the printer driver and you have never had such a problem before, try it yourself, see what happens. I have been told to buy the new crystal, because that would solve it. it did not. Upgrade to the newest version, that would help, it didnt. try to change some settings in CR, does not help. Try a different printer, did not help.
To be honest, i have had it with try this or try that. My suggestion, try yourself. If someone had done that from the start i would have solved this problem ages ago.
I am working on this problem for about 3 months(!!!) now and i just simply need a solution.
So if anybody has a suggestion that does not include upgrade to x or y, please let me know. -
Post Author: ranganadhkodali
CA Forum: Authentication
Dear Group Members,
I have a vary big problem with crystal report XI edition, I am
unable to find the cause of the problem actually.
I am using Crystal Report XI Developer version to build
reports in my development system, which I am, using SQL server 2005 as a
backend database and u201CUn-Typedu201D Pull
model for generate reports, in that my system those are working very good.
For distribute those reports to the other clients, I was
prepared one small windows application in .net and I placed one shared
directory. Application will show all report files placed under the shared
directory by the user selection.
If User selects one report, I am taking the selected report
from the shared directory and open with the .net embedded crystal report
viewer, while opening I was filling the
server login information(By code itself).
Any way application also working very well in my development
system, for deploys this application I added crystal report redist package that
is came with the visual studio 2008.
When I run the same application, in deployed
system, it showing login database dialog with empty database name, and one more
thing is that database text box also showing like disable. So even I unable to
give database credential with in dialog. I donu2019t understood what is the cause
of the problem?
Almost same problem was happen before 4 months back for some
other project, @ that time I rebuild my report with the PUSh model, and it
working well. But this case, I donu2019t have a chance to do like that, because daily
I should generate some kind of reports, needs of management. That management
staff will check reports from with that my distributed application. For these
all things, I canu2019t rebuild and redistribute my application every time if I add
new report. So that I placed one shared folder and, I keep update all changed
reports files in that shared folder, my application will show them.
What is the cause of the problem?
Is it problem with connection? Then it should not work with
in my development system also
Then it probably problem with the deployment? Then I am able
to view the initial report, problem came only when I refresh the data?
If problems with deployment, then how it is works for push type reports, it giving problem
for only pull type reports?
thanks and regards Ranganadh KodaliPlease visit:
www.geocities.com/pmk16
Regards,
pmk16 -
Crystal report problem on window 2003 server
Hi
We had developed a web based application using .Net 2.0 (C#) , Crystal reports (bundled version within VS2005) on Window XP, SQL Server 2005, we are able to see all the reports on this development enviroment, but when the application is deployed on Windows 2003 server , IIS 6.0 and SQL server 2005 , we are not able to view the reports we are thrown with an error as
Failed to open a rowset. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Procedure or Function 'sp_xxxx' expects parameter '@ppppp', which was not supplied. SQL State: 42000 Native Error: Failed to open a rowset. Error in File
Could you please explain what the problem is ? as we are stuck with this problem for the migration of application to the user community.
Regards
varmaWe have same problem
does anyone have the answer? -
Hi Guys,
i had developed many more reports ie crystal reports 10 successfully in my Pc.But while going to my client place not able see my reports while clicking added reports in B1 module ie Purchase A/p -> purchase reports in that my report is added while clicking that report it displaying following Error ie myaddon.exe is Encountered or Addon Crystal report is Disconnect we are not able to fix this issue what problem but in my PC its displaying all reports this is OS problem or some other issue i am using windows 2000 proffesional in my Client PC ie windows 2003 server sp1.what is this issue can any solve with brief explantion asap.
Regards
ANANDHi
This is a technical issue and could be addressed in the SAP BUSINESS ONE SDK forum.
No issues. As you have already posted it here, let me try to help you out.
Just check for one small thing as to, if .NET framework is installed in the client's computer or not.
Crystal reports do not have an OS compatibility issue.
Thanks
Sudatt
Maybe you are looking for
-
Data refresh problem - QaaWS and Tomcat cache
Hi Experts, I have a problem with data refreshing in Xcelsius 2008 dashboard when I use QaaWS. System is: BO XI 3.1 on the Win2008 server. When data are changing in the database InfoView documents show it immediately, but into the Xcelsius dashboards
-
How to downgrade from Windows Vista to Xp on a Satellite P200?
Hi! i would like to know if it's possible to install Windows XP on a computer which originally comes with Vista? Someone told me some drivers needed to be installed first, but i cant find the right information. Thanks Corinne
-
Where is the advanced search in iTunes 11
Under the Store menu bar item, there used to be a search option. This search allowed me to do an advanced type search with specific criteria. What are the new search tools, just spotlight and categories?
-
Itunes stops downloading when almost complete
Hi there, my friend has a dell laptop brand new not sure what model running windows 7. Whenever i attempt to download itunes the download reaches around 70-90% completion and then stops. I've tried IE, firefox and google chrome and all of them fail.
-
How can i increase time of preloader in flex?
How can I extend time of preloader in flex?