Crystal 10 - papersource in a subreport with VB6
Hi,
I have an older application. Now I have to change some reports. I'm trying since two days to print a report with a subreport to two different papersources. Look at my source code at the bottom. When I print the report always the last papersource command will executed.
- If I move the report papersource comand in front of the subreport command - the subreport command will executed.
- If I move the subreport papersource command in front of the report command - the report command will executed.
Is there no way to print a subreport to another papersource?
I'm happy for any hint!
Best regards,
Daniel
Global cr10App As New CRAXDRT.Application
Global cr10Rep As CRAXDRT.Report
Global cr10FormulaFields As CRAXDRT.FormulaFieldDefinitions
Global cr10FormulaField As CRAXDRT.FormulaFieldDefinition
Global cr10Database As CRAXDRT.Database
Global cr10DatabaseTables As CRAXDRT.DatabaseTables
Global cr10DatabaseTable As CRAXDRT.DatabaseTable
Global cr10Sections As CRAXDRT.Sections
Global cr10Section As CRAXDRT.Section
Global cr10Subreport As CRAXDRT.Report
Global cr10SubreportObject As CRAXDRT.SubreportObject
Global cr10ReportObject As Object
Sub cr10_PrintReport(varReportFile As String, varReportName As String, varSelection As String, varForm As Form)
Dim countTable As Integer, countReset As Integer
On Error GoTo cr10_PrintReport_Error
Screen.MousePointer = vbHourglass
countTable = 0
'Instantiate the Application object and open the Crystal Report from the disk
Set cr10Rep = cr10App.OpenReport(varReportFile)
cr10Rep.ReportTitle = varReportName
'Now, set our Database object to the Report object's Database object
Set cr10Database = cr10Rep.Database
'And then, set our DatabaseTables object to the Database object's Tables object
Set cr10DatabaseTables = cr10Database.Tables
For Each cr10DatabaseTable In cr10DatabaseTables
cr10DatabaseTable.Location = PathFIB
countTable = countTable + 1
Next cr10DatabaseTable
'Subreport section
'Now, set our cr10Sections object to the Report object's sections collection
Set cr10Sections = cr10Rep.Sections
For Each cr10Section In cr10Sections
For Each cr10ReportObject In cr10Section.ReportObjects
If cr10ReportObject.Kind = crSubreportObject Then
Set cr10SubreportObject = cr10ReportObject
Set cr10Subreport = cr10SubreportObject.OpenSubreport
Set cr10Database = cr10Subreport.Database
Set cr10DatabaseTables = cr10Database.Tables
cr10Subreport.PaperSource = crPRBinLower
For Each cr10DatabaseTable In cr10DatabaseTables
cr10DatabaseTable.Location = PathAPP
Next
Set cr10Subreport = Nothing
End If
Next
Next
cr10Rep.PaperSource = crPRBinAuto
CRW00.CARV1.ReportSource = cr10Rep
CRW00.CARV1.ViewReport
CRW00.Caption = cr10Rep.ReportTitle
CRW00.SetFocus
Screen.MousePointer = vbDefault
'Reset all temporary values and fields
For countReset = 0 To 5
TabFormulaName(countReset) = ""
TabFormula(countReset) = ""
Next countReset
Set cr10Database = Nothing
Set cr10DatabaseTable = Nothing
Set cr10DatabaseTables = Nothing
Set cr10FormulaFields = Nothing
Set cr10FormulaField = Nothing
Set cr10Sections = Nothing
Set cr10Section = Nothing
Set cr10Subreport = Nothing
Set cr10SubreportObject = Nothing
Set cr10Rep = Nothing
Set cr10App = Nothing
orientation = 0
Exit Sub
cr10_PrintReport_Error:
If Err Then
Call setErrorMSG
Resume cr10_PrintReport_End
End If
cr10_PrintReport_End:
Screen.MousePointer = vbDefault
End Sub
No there is not. Best way to see what may be possible with any feature or functionality is to see if you can get it to work in the CR designer. If not, it more than likely will not work using any SDK...
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Similar Messages
-
Running Crystal report( with subreport) from VB6 using CRAXDRT.Report
The application (vb5 with CRAXDRT.Report version 11.5) works for more than 50 different reports.
This special report has a subreport with 5 Link elements.
Report works fine with Crystal XI. But when gets fired from vb6 application, after 2 or 3 times
(sometimes at the first time), application crashes with following error message pops up:
vb6.exe-Application Error.
Instruction at 0x0000000 referenced memory could not be "read"
The link elements of subreports are:
(MSP for Main report's stored proc, SSP for Subreport's stored proc)
MSP . @Prior -> SSP.@Prior
MSP . @managerID -> SSP.@managerID
MSP . @showall -> SSP.@showall
MSP . officeid-> SSP.@officeid
MSP . manager -> SSP.manager (items with @ sign are Parameters)
If I delete the last link element this error never happens !
Any clue ?For starters, get the latest Service Pack for CR XI r2 from here:
https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
Make sure you also have the latest SP for VB 6.
Ludek -
Problems with subreports from VB6, helpppppppppp!!!
Post Author: Alejandro
CA Forum: General
Hi, everybody, I have problems to see the information from subreports, I dont know what to do.
I have reports with 2 or more subreports inside it, I link the subreports with report, but when I try to see it from vb6 application
It asks me for the parameter value of the parameter created when I linked them, I dont want to it asks me for values, but this is only 1 problem, when I type values, I get next message "the field name is not know",
If I dont link anything when i run vb application I can see all (headers, titles, etc) but no the information retrieved from query, but from crystal reports all is fine in both cases(linked and not linked) I can see the reports and subreports with entire information
I need help, How can I do to see complete information in my reports, how to pass the values to subreports and it doesnt ask me for it.
In advance , thanksPost Author: rasinc
CA Forum: General
I usually link my subreports whenever possible, back to the main report so that the main report passes the appropriate parameters and I only have to deal with the main report. Can be done in the designer on the Edit menu. -
Linked Button error in a subReport with Crystal Reports
Hi expert,
I have a designed a subreport with Crystal Report, and I have add the Sap Linked button (OLE Object), to allow the user to click on the linked button and open the relativa Sap Document (Invoice, Delivery, etc etc).
In the hypetetx linked property, I have write the link
'http://$b1$/link=OINV&key=1'
In this way all is ok, but In my query I have the name of the table and the DocEntry, so I try this way:
'http://$b1$/link='&{Comando.Table}&'&key='&{Comando.DocEntry}
If I try to open the document, I retrieve the error: You are not permitted to perform this action. Authorisation Path: Help.
I don't understand if the problem is the authorization (i am manager, superuser) or if I had write in a wrong mode the hypertext link. (maybe the Apex?)
Anybody can help me?
Regards
MarcoHi Marco,
if {Comando.DocEntry} field is string type try this code:
'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText(ToNumber({Comando.DocEntry}),0,'','')
else if DocEntry field is number type try this code:
'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText({Comando.DocEntry},0,'','')
Regards,
Domenico
Edited by: Domenico Lovino on Feb 23, 2012 10:04 AM -
Post Author: fabu1971
CA Forum: .NET
I could pass the database logon in Reports with subreports but the reports with subreports with different server name I can not pass the logon information . Do you have any idea how I can do that to pass the database logon with different database or server name ?Post Author: quafto
CA Forum: .NET
You can use the Subreports collection of the ReportDocument object to access all the subreports in your main report. These are returned as ReportDocument objects. Once you have your subreport as a ReportDocument you can loop through your Tables collection and set the ConnectionProperties to your appropriate Server/Database. For example here is some pseudo code: ConnectionInfo boConnectionInfo = new ConnectionInfo();boConnectionInfo.ServerName = "serverName";boConnectionInfo.DatabaseName = "databaseName";boConnectionInfo.UserID = "username";boConnectionInfo.Password = "yourpassword"; foreach(ReportDocument boSubreport in mainReport.Subreports){ foreach(Table boTable in boSubreport.Database.Tables) { TableLogOnInfo boTableLogOnInfo = boTable.LogOnInfo; boTableLogOnInfo.ConnectionInfo = boConnectionInfo; boTable.ApplyLogOnInfo(boTableLogOnInfo); boTable.Location = "newtablelocation"; }} -
CRXI Professional integration with Vb6.0
Hi,
We newly bought he crystal reports XI professional, and hard time in integrating with Visula Basic 6.0.
I went thru some of posts, and says that activexwould be available with the Developer Edition.
my questions are
1) Isn't RDC(Report Designer Components) available with Professional version?
2) how to integrate Professional with VB6.0.
I would appreciate if any body direct me in this regards.
Thanks and Regards
SrinivasHi David,
Thanks for the confirmation.
Do you know by any chance of canceling the Professional Edition and getting the Developer edition with out any cost,
I am sorry for asking a Sales question, but thought you might...
Thanks and Regards
Srinivas -
How to use Crystal Reports XI release 2 Preview with Lotus Notes Scripts ?
<br />Hi all,<br /><br /> How to use Crystal Reports XI release 2 Preview with Lotus Notes 7 Scripts ?<br /><br /> <br /><br />Thank's <br />
Hi,
we are using Lotus Notes and Crystal Reports for preview and printing reports from our Lotus Notes Applications. We use the RDC object model. For previewing the reports we export them in an pdf-file and then start the PDF Reader to show the Preview. This works fine.
But with Crystal Reports > 11 the RDC Object Model is no longer supportet, so we look for another way to preview and print our reports.
I try to preview a report build with crystal report XI release 2 in my thick client (Lotus Notes) using java reporting component JRC, this report uses an native xml file as datasource. If the datasource is saved with the report everything works fine, but otherwise I have the following error:
JRCAgent1 detected an exception: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found
I also tried the .jars from Crystal4Eclipse. Doesn't work. When I use Eclipse to view the report everything works fine. The class QName exitsts in the jaxrpc.jar and in the xbean.jar, but only in the xbean.jar a Methode getPrefix exists.
This is what we tried:
Works fine with RDC. Doesn't work with JRC until now.
Did this help you ?
Perhaps you con help me with the JRC, because I'm a java newbee so any ideas could be helpful.
Oliver
<p><a href="http://www.cominform.de">www.cominform.de</a></p> -
Inter-process communication with VB6 application
I want to have my C# application communicate with VB6 application program.
The message to communicate is simple. Here is a scenario.
VB6 APP C# APP
Run C# APP "1", "2" or "3"
Send command ---------------->
Wait Do work as the command
Exit from loop <---------------- Return code
Terminate
I implemented this with Profile(ini file) but I want to do without file writing.
Which way would be desirable?If vb6 is using process.start ( or whatever the equivalent is ) to crank the c# application up then you could just use command line arguments to pass the variable in.
A simple way to pass data between processes is ms message queue.
You have a queue for each direction you want to send stuff.
You could use a mix of these.
Pass in args to the c# app then listen for messages on a queue and the c# app pushes the return code onto that queue.
https://msdn.microsoft.com/en-us/library/aa288457%28v=vs.71%29.aspx?f=255&MSPPError=-2147217396
public class CommandLine
public static void Main(string[] args)
// The Length property is used to obtain the length of the array.
// Notice that Length is a read-only property:
Console.WriteLine("Number of command line parameters = {0}",
args.Length);
for(int i = 0; i < args.Length; i++)
Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);
https://msdn.microsoft.com/en-us/library/ms711472(v=vs.85).aspx
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles -
Data Read event in DAQmx with VB6
Hi,
I'm new to NI-DAQmx, I'll develop DAQ applications with VB.Net and DAQmx but feel maybe it's better to try with VB6 first. I've looked at the examples for DAQmx 7.5 using VB6, but have not been able to find an equivalent event to the CWAI_AcquiredData(,) event for the activeX controls in traditional NI-DAQ. My applications will continuously acquire analog data and should parse data in such an event if there is one.
Look forward to your advice.
Thank you in advance,
LogicTHello LogicT
Microsoft provides a free book that will guide users who are upgrading
to VB.NET. It's pretty comprehensive and can be downloaded for offline
reading. See this link for more information. Get 'em while they're hot
For the VB 6.0 type library appraoch, you could use the DAQmxRegisterEveryNSamplesEvent function to register
for a synchronous event to inform you when a certain number of samples
have been acquired. You could then call the read function inside of
this event. Or you could just call the read in a loop with
Application.DoEvents. But this latter approach might cause UI
delays,especially if your sampling rate is slow and it takes a while to
acquire the data.
But honestly, if the ultimate goal is to move to VB.NET, then I would
not recommend the approach you're taking. The DAQmx API for .NET is a
native .NET library. The documentation for it is integrated into the
Visual Studio Help system. There are alot more shipping examples and
concept documents for the .NET library then there are for the VB 6.0
type library for DAQmx. Trying to make a direct conversion from the VB
6.0 type library application to a VB.NET app will not provide you with
optimal results. If the end goal is to have a VB.NET DAQmx
application, I would recommend starting in VB.NET. Use the book I
mentioned above as a starting resource. The example you're looking for
is under ..\DotNET\Examples\DAQmx\Analog In\Measure
Voltage\ContAcqVoltageSamples_IntClk
PS: Even thought the path mentioned by E.Lee has Measurement Studio in
there, you do not need to purchase Measurement Studio to get the .NET
DAQmx API. It is available as part of the DAQmx driver for free. The
Help and examples are all included.
I hope this helps
Bilal Durrani
NI -
Post Author: lingamurthy
CA Forum: General
Hi
We are using VB 6 as our application development. We would like to know, if we buy, crystal reports 11, is this compatible with vb 6 or not?
Regards平素より弊社の製品をご利用頂きまして誠に有難うございます。
日本ナショナルインスツルメンツ技術部の長久と申します。
8255互換モードにつきましては、NI-DAQ 6.9.3を使用していただく必要がございます。
現在の従来型DAQ7.xでは、この機能は使用できませんことご了承いただければ幸いです。
この現象につきましては、米国本社開発部に報告いたしました。
Error 10459につきましては、以下のURLからpalBase.exeをダウンロードしていただければ改善されるかと存じます。
手順はステップ4から7になります。
Unusual Error Messages Loading, Executing, or Debugging an Application When Using NI-DAQ for Windows
http://digital.ni.com/public.nsf/websearch/6A73AE4A1104639686256C460081528C?OpenDocument
以下が翻訳しました手順となります。
1.palBase.exeをC:\WINDOWSのディレクトリにダウンロードします。
2.コマンドプロンプトを起動し、palBase -b 64000000 -s 44000000と入力します。
3.PCを再起動し、アプリケーションをご確認ください。
4.問題が改善されない場合は、以下の三種類にてご確認ください。
palBase -b 44800000 -s 45800000
palBase -b 32800000 -s 36800000 -d 18400000
type palBase -b 33400000 -s 35400000 -d 34400000 -
Crystal Reports for Eclipse and CR2008 with subreports
SQL-Server 2005
CR 2008, Ver.12.0.0.683
Crystal Reports for Eclipse Plug-in Details:
all Plug-in-files from Business Objects have the version 12.2.200.r454
I create a report with subreports in CR2008. It's running perfect.
When I load this report with subreports to Eclipse I can see the subreports in the report and I can click into the subreports. Each subreport is working in Preview, but when I want to preview the whole report with the subreports I get a black screen and the error
eclipse.buildId=M20080911-1700
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Fri Feb 06 08:13:34 CET 2009
Unknown Error (java.lang.NullPointerException)
Info
Fri Feb 06 08:13:34 CET 2009
Plug-in Info: Business Objects, an SAP company - 12.2.200.r454
java.lang.NullPointerException
at com.crystaldecisions.reports.queryengine.QueryInfo.wF(Unknown Source)
at com.crystaldecisions.reports.datafoundation.DFQuery.if(Unknown Source)
at com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
at com.crystaldecisions.reports.datafoundation.DFQuery.int(Unknown Source)
at com.crystaldecisions.reports.datalayer.a.do(Unknown Source)
at com.crystaldecisions.reports.dataengine.m.l(Unknown Source)
at com.crystaldecisions.reports.dataengine.m.b(Unknown Source)
at com.crystaldecisions.reports.dataengine.j.b(Unknown Source)
at com.crystaldecisions.reports.dataengine.m.o(Unknown Source)
at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
at com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fm(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.A(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.call(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.A(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.syncExecute(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages.create(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.getValidFormattedPages(Unknown Source)
at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller$3.doWork(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$_B.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any good ideas?
Thanks in advance.
Regards
JensHi Ted,
the error happens in the preview of the main report. Each subreport preview in this main report is running.
Regards
Jens
Edited by: Jens Kutsche on Feb 9, 2009 8:48 AM
The preview of the main report is running in CR2008.
Edited by: Jens Kutsche on Feb 9, 2009 8:56 AM
When I start this main report with a jsp I get the same error:
java.lang.NullPointerException -
Printing Crystal 11.5 R2 with VB6 Directly to Printer
Post Author: fferguson
CA Forum: Other
Hi,
Does anyone know how to correctly supress the report prompting when printing directly to a printer?
I can see the correct paramaters being passed, but I still get prompted for paramaters after selecting the printer. (My code below)
Private Sub ApplyParameters(ByRef CRXReport As CRAXDRT.report, ByVal param As String)
Dim CRXTables As CRAXDRT.DatabaseTables Dim crxTable As CRAXDRT.DatabaseTable Dim CRXSections As CRAXDRT.Sections Dim CRXSection As CRAXDRT.Section Dim CRXSubreportObj As CRAXDRT.SubreportObject Dim CRXReportObjects As CRAXDRT.ReportObjects Dim CRXSubreport As CRAXDRT.report Dim CRXReportObject As Object Dim CRXParamDefs As CRAXDRT.ParameterFieldDefinitions Dim CRXParamDef As CRAXDRT.ParameterFieldDefinition Set CRXParamDefs = CRXReport.ParameterFields
Dim strParameters As String Dim index As Long Dim strParValPair() As String Dim strVal() As String strParameters = param 'Apply the parameters strParValPair = Split(strParameters, "|", , vbTextCompare) For Each CRXParamDef In CRXParamDefs For index = 0 To UBound(strParValPair) If InStr(strParValPair(index), "=") > 0 Then strVal = Split(strParValPair(index), "=", , vbTextCompare) If UCase(CRXParamDef.ParameterFieldName) = UCase(strVal(0)) Then 'auto type conversion does not seem to work with Crystal parameters Select Case CRXReport.ParameterFields.GetItemByName(strVal(0)).ValueType Case crBooleanField '9 CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CBool(strVal(1))) Case crNumberField '7 CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CLng(strVal(1))) Case crDateField '10 CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CDate(strVal(1))) Case crTimeField '11 CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (CDate(strVal(1))) Case Else CRXReport.ParameterFields.GetItemByName(strVal(0)).SetCurrentValue (strVal(1)) End Select End If End If Next index Next CRXParamDef 'Set params on subreports where params are not linked Set CRXSections = CRXReport.Sections For Each CRXSection In CRXSections Set CRXReportObjects = CRXSection.ReportObjects For Each CRXReportObject In CRXReportObjects If CRXReportObject.Kind = crSubreportObject Then 'type = 5 Set CRXSubreportObj = CRXReportObject Set CRXSubreport = CRXSubreportObj.OpenSubreport Call ApplyParameters(CRXSubreport, strParameters) End If Next CRXReportObject Next CRXSection End SubHello, Chuck;
Oracle 11g is not tested with Crystal Reports XI R2 (See Platforms.txt). That said it should probably work.
What version of the Oracle client is installed on your application system? It should also be Oracle 11g.
What error are you getting?
Are you using the "Microsoft OLEDB provider for Oracle" or the "Oracle Provider for OLEDB"?
Have you tested the connection to Oracle 11g in the Crystal Reports designer?
If you save a copy of your report and change the connection to Oracle Native or ODBC to Oracle, does it work? That will eliminate the crdb_ado.dll driver from the picture.
Elaine -
Crystal Report chart with VB6 help...
Hello!....I m using crystal report with visual basic 6.......i develop a report in crystal report in which i add a chart control......when i see preview in crystal report and move mouse over chart then on Tool tip i get each data point shown on mouse movement......
but when i open this report in VB...and run project and move mouse over it the i only get "CHART"...for whole movement.....how i can get data values for mouse movement in VB6??.....thanks in advance........How and Why...
In Crystal Report Designer the viewer is built into the executable and therefore has direct access to the report objects. The Charting dll is also a third party dll which we have hooks into in CR Designer and can get and pass the required info from the charting dll to the internal viewer. It's all processed on the local PC.
In code there are limitations as to what the ActiveX and other viewers have access to due to WEB issues. When viewing reports from a WEB app we are passing each page to the browser in a proprietary "picture" format of each page therefore there is no way to capture where the mouse is when it's over a chart object, it is an embedded picture also. Same for non-web applications, it's a limitation of the browsers and viewers mostly. -
Invalid TLV with vb6 and Crystal XI
Hi,
I'm having a problem and haven't found any solution.
I have an application on VB6, I create the setup and installed on another computer. When I'm testing the application it gave the error "Invalid TLV" when trying to run some of the reports. The reports are on Crystal Report XI. I notice the error is just with the reports that use parameters, the ones without parameters runs Ok. I tested and is passing the parameter value. The errros is on this statements:
Set Report = CrysApp.OpenReport(sptPath & reportName)
This is the same statement for all my reports but is not working for those with parameters.
I don't have any problem with this reports on my computer the problem comes when I create the setup and install it on another computer.
Any solutions????
Thanks.Hi Diana,
Any time you deploy an application you need to include the appropriate merge modules. You can not deploy just the dlls that seem to be used as there are many in the background that have dependencies, registry entries, etc. Manual deployment is not supported.
You were able to find the correct deployment method on your own
Good luck with your project.
Jason -
Crystal Reports XI R2 Chinese characters display issue(with VB6)
I have a vb6 program that interfaces to crystal reports xi using crystal active x report viewer. When i print a report with Chinese characters in it, they print end up printing as boxes, but when i open the report through crystal itself they print fine.
Is there some setting that needs to be set to allow the characters to display properly?Not a bug in CR, it's a limitation of Microsoft Framework. It has problems rendering fonts properly though GDIPlus.
Crystal Reports is a Win32 app, VB 6 and newer OS has issues. The viewer for CR is built into crw32.exe, the viewer you are using is an ActiveX viewer ( crviewer.dll ) and it can have limitations also. Mostly, CR XI R2 is unicode, using non-unicode fonts or non-UTF-8 type fonts are not supported. So some may work and others not.
Make sure the fonts you are using are True Type and that they are shared for all users. Depends on the OS you are using also.
Also, install the only patches available for R2, it may be resolved if you are not on the last updates:
https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe ( requires and uninstall first so make sure you have your keycode, we can't give you a new one.
https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe
Thanks
Don
Maybe you are looking for
-
I have a web page i run on a local process network. If i use an alert and confirm dialog box it works out ok on a single monitor station, but we use dual monitor stations and the window ends up in the center of the two screens. This is a problume bec
-
Small Network Server Options - Advice?
I have a small group of macs ranging from first-gen Powermac G4s to relatively new imac G5s that I would like to set up on a legitimate network. Currently I have them connected on a networked Lacie external-HD - Which works for the most part, but I w
-
Windows CS4 files will not open on the Mac
How come Windows CS4 files will not open on the Mac version? Kevin
-
Hi, I'm having trouble with building iOS applications in flash. I just bought an iPad and want to start building apps for it. I hav done simple apps for iPhone before but nothing too fancy. The problem is, I can build it and compile it fine but when
-
Counting number of frames played
Hi i am interesting in counting the number of frames which are already received and played. I am not interesting in grabbing or editting the frames. Just count them. Any propositions will be greatly appreciated. I think i should use getSequenceNumber