Using VB6 & Crystal Report 9. Need help with the VB6 code.
When i click the button, i want to view the report in the form. Any ideas on how to view the report?
There is Crystal Report Viewer Control. Right click toolbox window and select Components...
Then scroll down and select Crystal Report Viewer Control. Place it on a form and create a
method to set path to report file, report parameters etc.
Private Sub mShowReport()
'...set report file...
CRViewer1.ReportSource = "C:\Reports\MyReport.rpt"
'...populate report params...
'*** insert code here ***
'...show it...
CRViewer1.ViewReport
End Sub
Related
I am using IReportEngine to open a template report and IReportRunnable to created the elements of the report. Then IRunAndRenderTask to display the report and return it as HTML. what I don't know is how to add the Birt toolbar and the navigation bar to the generated report. Any idea or suggestion ?
Both toolbar and pagination are components of the webviewer, not components of the BIRT engine API. If reports are generated with the report engine API, as far a i know there is no way to display these elements out-of-the-box: you need to implement your own toolbar and pagination widget.
I have a created a drill down birt report (i.e. a summary report and then a detail report). In my jsp I am using the birt reports tag library to show the reports in a report viewer. In these tags I've set showTitle="false". In the summary report this options works and the title does not show.
But when I click on my drill down link, the detail report shows a title of "Birt Report Viewer" appears. I guess that is a default title and there is a property or parameter in the hyperlink specification that I need to set which I am missing in order to hide that default title.
Can anyone help me with this please.
thanks
Thanks for your top Sundar. After reading it I tried to pass through __showtitle=false in the report parameter screen and it worked. The title no longer displays after hitting the drill through link.
Before this I was unaware of the __notation. I guess that notation is reserved for special birt paramters.
Using BIRT 4.2
My database (Postgresql) has many fields with hyperlinks in it and when I am displaying the reports via BIRT report viewer, all the fields which have hyperlinks are displayed as normal text in the BIRT report viewer. I want the hyperlinks to be retained at the BIRT report viewer. How can I achieve this. Please suggest.
Select the corresponding cell and go to the hyperlink property and click on edit and select the URI radio button and click on the javascript syntax button and you will find your column bindings from that select the value of the column and finally you will get the hyperlinks
your url should be like this (http://www.+row["Title"]+.com) if your Title field having google means then your string should be like this ("http://www.google.com").if you didn't append any HTTP means then it will look for the file which is in webcontent folder of your birt.war
As the title says, I would like to call the reports from forms without actually displaying the form. I am very new to Oracle forms. I tried to do the following but it didn't work:
1)Inserted the code to call the reports in WHEN-NEW-FORM-INSTANCE trigger.
2)Removed the canvas so that the form won't be displayed.
But I got the error
RM-30173: Module contains no canvases
Is it possible to do this?. I am trying to display the report when a menu item in an oracle forms application is clicked which in turn would call the above form but directly displaying
the report instead of displaying an UI.
Update:
I am using Forms Builder 10.1.2.
As for why I don't want to do this directly in the menu(MMB), the menu doesn't have an option to attach a report and I've already got a working form that generates an report but the code to call the report is written in a button-pressed trigger.
In,
http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45, I am trying to do what Andreas Weiden, suggested in that thread.
I think your problem may be in limiting your menu options to only opening forms.
For example, you could instead have the menu in your form execute a form trigger which would call the report. Or a web.show_document to the url for the Report.
What version of Forms are you on? It's been a while since I did much with Forms, but this may give you a start.
I am only familiar with Reports 6i, and it was simple to just run the report from the menu.
We created a menu item that was PL/SQL Command Type, dropped the code to run the report module in the Menu Item Code box, and all was good. I'd be surprised if you couldn't do something similar in 10g reports.
Move the code from the form's button into a procedure in a common library. Attach the library to the form and to the menu module. Call the procedure from both the form button as well as the menu.
I solved the problem by creating a blank canvas in the 'dummy form' as 'FRM-30173: Module contains no canvases' was returned when no canvas was found in the form.
The approach suggested by Andreas Weiden here: http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45 works well.
You could have also just created the report and just call it behind the menu option but hiding the report parameter form and the report would automatically begin to generate. In the menu option just before you call the report name just set the report paramform to hide and destype to screen. This would have save the trouble of creating a blank canvas and maybe having to suppress error messages if any was thrown.
I have created a Report using Crystal Report(Visual Studio 2005 and .NET Framework 2.0). In the Report Header section I have added a TextBox control to display header for the report. But when I execute the application the Text in the Report Header section is not displayed.
What should I do to view the text entered in the report header section?
Thanks in advance!
1) Are you sure you're running the most up to date copy of the report in the application?
The default behavior for the report header and textbox is that they are visible unless specified otherwise.
2) If the report header is being suppressed, it will appear as a darker shade than normally visible sections. If the report header looks to be suppressed, you need to check the Section Expert for the Suppress checkbox associated with the report header section (it can be set conditionally - kill the button next to the Suppress checkbox to see if there's any code. Generally the button text is red if there is any conditional logic).
3) If the report header is visible with no interference, check the suppression logic for the texbox - right click on the textbox, click properties. Same checklist as for the report header.