I am using Devexpress XtraReport suite in my application which works fine for dynamic reporting requirement except one customization as below:
User is given report preview using ReportPrintTool with dynamic data.
Now, when user tries to export print preview as Image file with 'ExportMode=Different Files' output file names are generated based on report name(i.e. reportName+pageIndex.png) which i need to define based on some dynamic value or say based on a column value provided to report as data source.
Can anybody please guide me how can I achieve this customization?
Reference from: XtraReport default file name in SaveDialog box
Try to set the XtraReport.ExportOptions.PrintPreview.DefaultFileName option (PrintPreviewOptions.DefaultFileName Property).
PrintControl.PrintingSystem.ExportOptions.PrintPreview.DefaultFileName = "column value that you provide"
To know that how to use it, Follow the below reference links:
default name of report during saving - Here some file name standard related issue also descripbed
How modify predefined file name on exporting report
XtraReports - Custom filename when exporting via the reports toolbar
Related
I am using IBM DiffMerge to generate a Report that shows all differences between two .cls files or .sbs files. I was playing with it and I saw that there is a filed in option menu that allows you to change the format of the report, but it implies some keywords, like $elemname to print the element's name or $elemtype to print its type $leftonly or $rightonly which show how many differences are in the left diagram or in the right one.
Now, I was wondering if there are more variables like those above, especially one that can print a component's GUID (unique ID in Rhapsody).
Thanks,
Daniel
I would expect that $GUID will give you what you're looking for.
Under the ReporterPlus installation folder there is a folder named Templates. In it you'll find a file named DiffReport.dpl which you can load it into ReporterPlus for editing like any other template. You must run Rep+ with a command line option so that it loads with the Diffmerge specific schema:
Reporter.exe /mode=dfm
After that you can load the Diffmerge template, and edit it to customize the output of DiffMerge reports. When you do, try adding $GUID into the output.
Regards, Simon
In an APEX application, I have an interactive report.
In Report Attributes > Report Export > Filename, you can specify what file name you the download to have as a default.
Question: Is there a way to dynamically define this default filename?
Yes, I know, the user can change it when they do the download. But my boss wants the user to not to have to change the file name.
What can anyone tell me? Thanks!!
APEX 4.2
Windows 7
IE 11
Yes you can do this. Create a hidden page item (e.g. P1_REPORT_NAME) and set its value to be whatever you want the name of the file to be. You can calculate this in many different ways e.g. - pass a value through a link from another page, using a dynamic action or computation, or setting a default value via static content or pl/sql expression. Then navigate to Report Attributes > Report Export > Filename and set it to &P1_REPORT_NAME. - now the report will be called whatever the value of P1_REPORT_NAME is.
New to Ignition, I would like to understand how to dynamically create windows pages containing templates binded to UDTs.
I created a Template named TGBT having 4 parameters:
-DeviceName (string)
-TagBlock (string)
-TagOffset (string)
-TgbtNr (TGBT, drop target)
I created a UDT named TGBT with the same Data Type Parameters
and added in the data type structure new OPC using OPC Item Path [{DeviceName}]{TagBlock},I{TagOffset}
Then I created instance of UDT with add hoc values:
This works fine when I create the page using the Ignition Designer
I created a script that read a CSV file (will be database at the end) and creates UDT instances accordingly:
It works fine, I can see OPC values updated in the tag browser, with the expected OPC Item Path.
I understood Template canvas are the proposed way and populated the Templates dataset.
The script populates the template with provided parameters eg:
{"DeviceName":Elec,"TagBlock":DB200,"TagOffset":48}
The Templates instances are correctly placed in the Template canvas, but I should be wrong in parameters as the Template fields, labels (...) are not updated accordingly.
Have someone tried this, could help me?
Xavier
Also check out this forum thread to generate templates on a container without canvas: https://forum.inductiveautomation.com/t/dynamically-add-component-to-root-container/12735/11
Trying to understand how TestNG concatenates method name + group name + description to display on report. I have a test suite which only shows the method name on my TestNG report but then I have other test suites that are concatenating the test description after the method name and displaying that entire string on the report (under the 2nd column after the class name column). I can't figure out what controls this difference.
Does anyone understand how this works and is enabled/disabled in the suite? In this scenario, TestNG is being executed by the Maven Surefire plugin, which as you know, places the emailable report under the "target" directory rather than under "testng-output".
Also, an additional detail I am wondering about is: can the description be altered during the Test method so that the altered description can be shown on the report?
This screenshot shows the favorable display of group and description but I have many other test suites that do not show this information and I want to know how to enable it.
Not sure about the report generated by SureFire, but if you use TestNG without Maven it generates two reports - emailable-report, index. Both display the same data but in different presentation. And we can customize the report content by creating a listener and overriding the default methods.
Refer this post on how to customize the report.
To your first question, it seems old versions of testng (prior to 6.8.1) used to have emailablereporter as its default reporter. Later versions have emailablereporter2 as it's default which doesn't show description. Try specifying listener as below to see descriptions against methods.
<listener class-name="org.testng.reporters.EmailableReporter"></listener>
The description can be altered by implementing IAnnotationTransformer.
hello all i am working on a project in which i have a webpage wherein i have some textboxes and a button.The functionality of that button is to export the data entered into the textboxes to excel in the form of a table.Also an image(stored on my local drive)needs to be exported too along with the textbox data.All of this i want to achieve through openxml only.This is what i want to achieve.Note that the image which is to be exported is some random image on my local drive.![input][1]![output][2]
Any suggestions would be greatly appreciated.Thank you
Input
[1]: http://i.stack.imgur.com/u3vsT.jpg
required output
[2]: http://i.stack.imgur.com/pkILb.jpg
Here is the exact sample you can use to display header, cell values and Image in your ASP.NET application using C#:
http://polymathprogrammer.com/2010/11/10/how-to-insert-multiple-images-in-excel-open-xml/
If you met any problem, write back here and we sure can help.