How can I save a report on server in BIRT so that it can be opened later by someone else using a link. I want to save the report as report design document(.rptdesign). I am using BIRT open source version. Do I need to write code for this functionality?
You don't need to write any code.
There are two easy options,
Your person can open the .rptdesign using "open with" and selecting, Notepad, WordPad, (or even a web broweser; IE, FF)
You open the the .rptdesign with Notepad (etc) and save as .txt (or what ever you want), and they open it as a text document.
If it is saved as .rptdesign and opened with a text editor; changes can be made and saved as .rptdesign and BIRT will open and run the report (assuming the changes are ok).
Related
Hello programmer friends, I have learnt a lot from this excellent site, and maybe there is something else that I can learn.
Well, I have taken over a delphi 7 project from someone else, made a few minor changes on it, mostly if then clauses, I didn't change the main structure at all, just a few changes, I did't even add any variables. The problem is, it used to work perfectly, but now we are having APP crash reports. I deleted whatever I added, deleted the whole folder actually, re-copied it from the usb disk again, compiled it the way it is, and we sometimes have APPCRASH reports again. Even if I compile the original version, we receive the errors.
I made a search in the folder and I found out that the folder includes a DSK file which is full of folder paths about the other computer (I mean the paths defined in the DSK file belong to the other computer, not mine!)
What happens if I delete this dsk file? How can I re-create it again with my folder paths? Is it possible that we have these APPCRASHES because of this DSK file?
Here is a photo I've taken after a CTD and I tried to debug..
The .dsk file is only used by the IDE (see below for details), so it cannot possibly be causing your APPCRASH reports. It is only used by the IDE at designtime to save and restore your desktop information; it is not in any way included in the executable or used at runtime by your application.
The .dsk file simply saves the desktop when you save the project. It saves the currently open editor tabs and the files each contains, in the order that the tabs are arranged, and saves the state of each tab (code or form editor, for instance).
The Delphi 2007 help file says
Saves the arrangement of your desktop when you close a project or exit the product. When you later open the same project, all files opened when the project was last closed are opened again, regardless of whether they are used by the project.
The help for Delphi 10.1 Berlin shows more is saved now:
Autosaves or updates the project desktop file (.dsk file extension) when you close the project or exit the product.
The <myproject>.dsk file records your current settings for:
Desktop layout
Breakpoints
Watch items
Files currently open in the IDE
When you reopen the project later, the .dsk file is read, and your desktop layout, your breakpoints, and your watches are all restored. Also, all files that were opened when the project was closed are opened again, regardless of whether they are used by the project.
When Autosave Project desktop is disabled, any existing project .dsk files are read when opening the project, but the .dsk files are never updated. This causes the same set of files to open with the project until the .dsk file is manually deleted from disk.
You can safely delete this file. The only consequence of doing so is that you will lose the contents of the file, which means the next time you open the project you'll get just the default files (the main form and code unit) or project file opened in editor tabs. If you have Save desktop turned on, the IDE will recreate the file (using your currently opened editor files) the next time you save your project.
I looked up this question on google and found how to change the save file defaults, but not what files are opened when I double click the Open Office icon on my desktop.
When I double-click Open Office on my desktop I want it to open the Text Document every time, as that is all I ever need from it.
If this is possible, and you know a fix or a direct link to the way of doing this, I would be much appreciative. :) thanks, and have a great week!
Create a shortcut for Writer. If you are using Windows, press your Start button, then "All programs" or "All apps", then click on the OpenOffice folder and it will show you Base, Calc, etc. with Writer at the bottom.
Drag the Writer icon to your desktop to create a shortcut. Double clicking on the Writer shortcut will open a text document.
When I select a file in solution explorer it opens immediately in a preview tab.
For many file types this is a useful feature. But when adding PDFs to a website it is not. How do I tune Visual Studio 2012's preview feature so that it does not preview PDF files?
(N.B. Kyralessa shows how to turn the preview feature off in an answer to another question, but I'd like to leave it on generally, and turn it off for PDFs.)
Click on the pdf file while holding ALT key - the file will be selected in solution explorer but it will not be open in preview tab.
When users preview a report I would like to avoid giving them the option of then opening another report or saving the current report. Open and Save are items in the default menu and toolbar that appear on Rave's preview rendering form; I'd like to make them not visible.
I'm using the version of Rave that comes with Delphi 2006.
Thanks, as always -- Al C.
If you are using a Rave System object then it is easy to disable the Save menu option by setting this property to false:
System Properties->SystemOptions->soAllowSaveFromPreview
If you are not using a Rave System object, it is easy to add one. Then set the Rave Project Engine property to the new System object. You shouldn't need to change any code. The Rave project will then use the properties in the System object when generating reports.
I believe I tried to figure out how to disable the File-Open menu but I didn't have any luck. Once users can no longer save reports, there won't be any Rave reports for them to open unless your application is saving report files.
I made a small IDE plug-in using Open Tools API that accesses ClearCase. It has menu items "Check In", "Check Out", etc. It works OK but I want it to check out a read-only file automatically if I start typing in IDE editor or if I attempt to save the file. Do you think this is possible?
I tried a few things but gave up eventually. IOTAEditorServices.KeyboardServices has AddKeyboardBinding method which looked promising. Using it I added a notifier with binding type btPartial (and later tried btComplete) and the plug-in started detecting some shortcut key presses but not all keyboard events, far from it... Any ideas would be much appreciated!
I think a "cleaner" way is to hook up a IOTAEditorNotifier to each editor and have your IOTAEditor.Modified method called by the IDE whenever the contents of the editor is modified, whether by keyboard, mouse or programmatically from another plugin.
Here's an example which registers an IOTAIDENotifier to be notified of files being opened in the IDE so it can register its IOTAEditorNotifier instances.
I must be possible somehow: we use SourceConexion (http://www.epocalipse.com/scx.htm) here, which auto checks-out the file before you edit the source or change the form.
JVCS has IDE integration support, it is open source, maybe they have implemented this too:
http://jedivcs.sourceforge.net/