Posted 4 August 2017, 3:02 pm ESTIs there any examples on how to create a TOC with grouping via the script editor in VBScript?
TOC With ScriptEditor
Posted by: jasonh on 4 August 2017, 3:02 pm EST
Replied 4 August 2017, 3:02 pm ESTYour example works great, however how would I go about this using the run time designer? Save the report as a .rpx and load this in the example: SubReportsInEndUserDesigner. Try to preview the report and see if you get the same error I get: "Fatal Exception in Script Execution".
Replied 4 August 2017, 3:02 pm ESTWhat is SubReportsInEndUserDesigner? Can you provide me a link to this sample to see this problem.
Replied 4 August 2017, 3:02 pm ESTI cant seem to find where i got the example, it was somewhere on this forum.... Anyways, hopefully it will reproduce the same results for you.
Replied 4 August 2017, 3:02 pm ESTWith a little change to the PreviewReport procedure in the sample you posted the error should stop:
' ddRpt As Object
Dim ddRpt As New DDActiveReports2.ActiveReport
' Set ddRpt = ard.Report
Please try it and let me know if it worked.
Replied 4 August 2017, 3:02 pm ESTWorks Great!