Runtime design of report in crystal reports 8.0
Hello All,
I want to change design of report through VB, I mean to say how can I change any textbox location to other location within same report only?
My problem is that we have more than 50 reports & if any customer wants to change location of textbox to other location within same report then he not able to do that & for that small reason support engineer have to visit him for minor change in report.
So saving time as well as man power, can we provide such interface where user can do minor changes in report ?
Any ideas are appreciated...thanx....... :thumb:
Re: Runtime design of report in crystal reports 8.0
text1.top=somevalue
text1.left=someothervalue
Re: Runtime design of report in crystal reports 8.0
sorry, :(
U did not get me. I want to open crystal reports 8.0 reports through VB for runtime design changes by user, but just for minor changes..... :)
Re: Runtime design of report in crystal reports 8.0
Moved to reporting section.
Re: Runtime design of report in crystal reports 8.0
Hi Hack,
Actually I was supposed to post this thread In reporting section but this is link of Vb & Crystal reports therefore I did it in visual basic section... any ways thanx for moving it in reporting section but plz giev me satisfactory answer if it exists...... :thumb:
Re: Runtime design of report in crystal reports 8.0
Hi,
can u plz visit this link to get what I am saying :
http://support.businessobjects.com/library/kbase/articles/c2007290.asp
Re: Runtime design of report in crystal reports 8.0
I may be wrong, but I don't think you can provide this sort of functionality without purchasing runtime licenses for each user of your application.
Re: Runtime design of report in crystal reports 8.0
You are correct pnish. You need to purchase a single license for each and every instance of your program. So if you want to give this functionality to 10 users using your app then you need to buy 10 licenses.
The logic is that why would they want to buy other copies of CR if you can create a program and redistribute it thus eliminating the need for the designer.
Re: Runtime design of report in crystal reports 8.0
If you have the Developer Edition, you are allowed to use certain properties and methods of the CRAXDRT (and distribute the dlls) without purchasing another license. Basically, you can modify existing report objects via properties such as left, top etc. but cannot create reports or add/delete objects onto existing reports.
Check out the License.hlp file found in your installation folder for further information. It contains a list of properties and methods that can be use "Royalty Free" and those that require an additional license.
Here is some code to change the Left and Top property. Sorry, I don't have version 8 but 8.5 so not sure if this will work for you.
VB Code:
Option Explicit
Private objCrystalApp As CRAXDRT.Application
Private Sub Command1_Click()
Dim objReport As CRAXDRT.Report
Dim objField As CRAXDRT.FieldObject
Dim objSection As CRAXDRT.Section
Set objReport = objCrystalApp.OpenReport("M:\testing\report1.rpt")
Set objSection = objReport.Sections("Section5") 'details section
Set objField = objSection.ReportObjects("Field2")
objField.Left = objField.Left + 2000
objField.Top = objField.Top + objField.Height
CRViewer1.ReportSource = objReport
CRViewer1.ViewReport
End Sub
Private Sub Form_Load()
Set objCrystalApp = New CRAXDRT.Application
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set objCrystalApp = Nothing
End Sub