I am migrating reports from QuickReport to FastReports. In the old code I have the following:
if MyCheckBox.Checked then
MyReport.LastPage;
I would call this in an AfterPrint event of a band, but I canĀ“t seem to migrate this part of the code.
How is it possible to jump to the last page using FastReports ?
Related
I am using Maximo 7.6.1.1 and Birt (eclipse 4.3.1). The requirement is to add some page related text with a field from the report into the footer on each page, so I am attempting to update the master page footer. The master page is local, not extended.
I have tried to repeat this from 2013 (https://www.youtube.com/watch?v=lw_k1qHY_gU&t=4s) without success.
So using page level variables as described by the link did not work - it appears that the page event for the variable I chose (when the variable is about to be updated on the page) did not seem to be getting invoked.
Has this possibly changed (since 2013) or does someone know of another work around?
I tried to add a number of data elements to the footer without success.
I did see that if I added a value to the footer element in the initialization event for the report, that we could see that but we never got any updates even though the field we wanted to use was updated as it is normally.
I don't know Maximo, but these page variables only work if BIRT is running in 2 steps: RunTask, then RenderTask. If the program is using the single-step RundAndRenderTask, page variables don't work. This behaviour has not changed with "newer" BIRT releases.
I am using Delphi XE2 and Chromium CEF4Delphi. I am trying to use a web page via the TChromiumWindow component and would like to detect when an element is selected / clicked.
I saw this post..
Delphi Chromium - launch a command in Delphi application when button in web page is clicked by user
Unfortunately, I cant find the function AddEventListenerProc in the CEF4Delphi library. Neither can I find an alternative way to monitor a button / element click.
I would like to use the TChromiumWindow component to act as a "fron-end" to my app and would like to monitor user button clicks etc.
Can anyone help please ? I did try the developer forum but I dont see much activity there and was unable to register.
Many thanks..
The DCEF3 project has a group here : https://groups.google.com/forum/#!forum/delphichromiumembedded
But the CEF4Delphi and OldCEF4Delphi projects have a developers forum here :
https://www.briskbard.com/forum/
That forum has new posts almost every day and I try to answer them as soon as I can, usually in less than 24 hours.
If you have problems creating an account just send me a message and I'll activate your account manually.
The link you posted is very old and many things have changed in CEF since 2012.
There are several ways to detect when a HTML element has been selected, clicked, etc.
You can use a JavaScript event like "onclick" that calls a custom JavaScript extension. That extension would send a process message to the browser process to notify that the user clicked that element.
You can also use the GlobalCEFApp.OnFocusedNodeChanged that is triggered when an HTML element has been focused. This event is executed in the "render" process so you will also need to send a process message to the main browser process that the focused element has changed.
Use the JSRTTIExtension or the JSExtension demos as a template for your app.
They show you how to set a "mouseover" event that calls the "myextension.mouseover" function defined in a custom JS extension. The myextension.mouseover function executes Delphi code and sends a process message to the main browser process with some HTML information that is shown in the status bar.
They also have an example for a "MutationObserver" that calls a generic "myextension.sendresulttobrowser" function in the JS extension that sends the "value" attribute to the browser process.
Build the demo and right-click on the web page when it's fully loaded. Then select the "Set mouseover event" or "Add mutation observer" options to test what I described.
I have a project which is using Umbraco v7.7.9 installed with nuget.
I was wondering if it is possible to change the buttons displayed in the sidebar section when a user selects to preview a content node. Particularly I want to remove the option that allows the user to close the preview.
The reason I want to hide this option is because some of the content the backoffice users will be previewing will not actually be published yet so clicking the close preview button causes an error.
I first asked this question on the Umbraco forums but haven't received a response yet, here is the link to the question: https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90878-editing-preview-window-sidebar-options
Thank you in advance.
Currently no - it would not be possible without doing hacks in the Core that would be overwritten when you upgrade your site (unless you manually merge your changes in when updating).
If you however don't mind doing that - the file used for the preview function is /umbraco/preview/index.html. You should look for the element with an exitPreview() click handler attached to it.
In later versions (7.10+) this modification will have to be done in /umbraco/Views/Preview/Index.cshtml instead, as these static files will be changed to MVC actions.
I have an application in which view and edit of a script(which is a .txt file) has to be performed. I am using a RichTextBox on .net platform for this. When user wants to view a script, I just copy the script in my richtext box with WordWrap true. But when user has to edit it, I have to show it in a single line. This does not require the word wrap property to be true.
But this is working fine on WindowsXP but when viewed on Windows 7 PC, on editing, the script is truncated. If user clicks anywhere on the dialog box which has richtextbox, the whole script can be seen. This happens each time when user selects to Edit it.
Also, If I do a remote desktop to Windows7 PC, the script can be seen properly at once only when editscript is done.
Can someone please help in this?
Can this be graphic card issue? I have checked changing the resolution but it didn't work
I've been "playing" with ReportViewer and I need to know how to do the following things:
Print report without creating a ReportViewer. Why? I don't want to show it, just print. ReportViewer is too slow.
Allow users to edit report design. The idea is to allow users to drag and drop TextBoxes to fit a pre-printed form. For example: to print invoices in a pre-printed form.
Thanks in advance.
You CAN print a report without a report viewer.
http://msdn.microsoft.com/en-us/library/ms252091.aspx
Also I have seen a post somewhere that creates a class that inherits from PrintDocument and you can pass the report into. It was in C# and I converted it to VB and it works fine.
Edit: Here is the post that detials the ReportPrintDocument class. Code linked on bottom of post
http://blogs.msdn.com/b/brianhartman/archive/2009/02/27/manually-printing-a-report.aspx
For the first part of the question: you can not print report without using reportViewer control. But you can print thre report from reportViewer control without actually showing the report. Here is similar question explaining how to do printing of report whout preview Link .For the second part of the question there are several ways to edit report desing. First is to use report designer in visual studio. Which is not good for users becaouse most user dont have VS or knowlege how to use it.Another way is to edit the xml of thr rdlc file by hand which is difficult to do even by programers. What i can suggest is using ReportBuilder. But this possible only if you use report server not reports in local mode.If thre is something not clear please ask.
Best Regards,
Iordan