how to select master slide in OpenOffice ODG document with TinyButStrong TBS - tinybutstrong

I can successfully manipulate fileds on a master slide of a PPTX document with this code:
$TBS->PlugIn(OPENTBS_SELECT_SLIDE, '1', true); // select master slide
$TBS->MergeField('abk', 'ainfo', true); // merge field 'abk.ainfo'
However, I fail trying to do the same with an ODG file that is just the PPTX file saved in a different format through LibreOffice.
Any clues?

With OpenTBS last version (1.10.0), the argument for opening the master slide is simply ignored. This is a bug and it will be fixed in the next version.
Waiting for the fix, here is a workaround: in an ODP, the master slide is saved in the styles.xml sub-file.
So you can open it with the command:
$TBS->PlugIn(OPENTBS_SELECT_FILE, 'styles.xml'); // select master slide

Related

Page Break Issue in pdf output

I am using BIRT Designer, I am having an issue of page break when generating the report as PDF.
After generating the PDF report, What happen is since the note from the input file is too long for the description column to accommodate some of the string is being pushed down to next line or being wrap to ensure that the note fits in the description column area which cause for the trailer details to be push to the next page.
I have tried many page break options like avoid before and after for tables/grid but nothing is working.
Please find the attachment of sample pdf for getting page break issue and rptdesign file and xml file.
So Please give some suggestion to solve as soon as possible.
Thanks and Regards,
Sharath.
I had similar issues in the past and found these answers a long time ago.
Set the page break interval to zero and see if this works for you. The page break before, inside and after settings should be set to Auto as setting something to avoid will always try to avoid page breaks when displaying your selection. Auto will use page breaks where necessary.
Check to see if this works for you.
You can also try entering this code in the beforeFactory section:
if( reportContext.getOutputFormat() == "pdf" ){
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement(
"mytable").setProperty("pageBreakInterval",
0);
}
Go to the script tab and then change the name "mytable" to the name you have given your table under Properties > General > Name

How can I display an image in a ms access 2013 report using relative paths stored in a field of a database

I have a simple database with table tblUsers containing the following fields:
id-number
name-short text
surname-short text
picture-short text
In the picture field I store the relative path to the linked image file for every record (using a form and a file dialog box for selecting picture).
I'm currently trying to make a report with 9 id cards on a page layout in which for every record, using an image control, to show the picture for the record by recreating the full path to the file and assingning it to the control's Picture property.
So, as an example:
I have 9 records with the values of the field Picture equal to: john_doe1.jpeg to john_doe9, stored as text.
When I load the report, I want to be able to see the 9 id cards with their respective photo atached.
I tried using the on current event for the report with this code
Private Sub Report_current()
Me.txtPathImg = Me.GetDBPath & [tblUsers.picture]
Me.imgControl.Picture = Me.txtPathImg
End Sub
but all I got is one picture for all the records in the report.
How can I display the correct picture for every record in report view?
Use a bound image control, i.e. set it's control source, e.g.
=GetDBPath() & "\" & [picture]
Then you don't need any code.
GetDBPath() must be a public function for this.
Or build the full path in a query, use that query as recordsource, then you can directly bind the image control to the full path.
hellow S.Overflow
tbl1students:
ID_FullName - dataType : text
Image_Path - dataType : text such as (D:\Imagefolder\FullName.jpg) you know that? ok
............
now create report wizard from tlblstudents table and then open report ac design
ok :
Add Imageframe from toolsbox
then make controlsource :Image_path
..............
you don't need to VBA cods to do that

Export to csv/excel from kibana

I am building a proof of concept using Elasticsearch Logstash and Kibana for one of my projects. I have the dashboard with the graphs working without any issue. One of the requirements for my project is the ability to download the file(csv/excel).
In kibana the only option i saw for downloading the file is by clicking on edit button on the visualization created. Is it possible to add a link on the dashboard that would allow users to download the file without going into the edit mode. And secondly I would like to disable/hide the edit mode for anyone other than me who views the dashboard.
Thanks
To export data to csv/excel from Kibana follow the following steps:-
Click on Visualize Tab & select a visualization (if created). If not created create a visualziation.
Click on caret symbol (^) which is present at the bottom of the visualization.
Then you will get an option of Export:Raw Formatted as the bottom of the page.
Please find below attached image showing Export option after clicking on caret symbol.
FYI : How to download data in CSV from Kibana:
In Kibana-->
1. Go to 'Discover' in left side
Select Index Field (based on your dashboard data)
(*** In case if you are not sure which index to select-->go to management tab-->Saved Objects-->Dashboard-->select dashboard name-->scroll down to JSON-->you will see the Index name )
left side you see all the variables available in the data-->click over the variable name that you want to have in csv-->click add-->this variable will be added on the right side of the columns avaliable
Top right section of the kibana-->there is the time filter-->click
-->select the duration for which you want the csv
Top upper right -->Reporting-->save this time/variable selection with a new report-->click generate CSV
Go to 'Management' in left side--> 'Reporting'-->download your csv
In Kibana 6.5, you can generate CSV under the Share Tab -> CSV Reports.
The request will be queued. Once the CSV is generated, it will be available for download under Management -> Reporting
I totally missed the export button at the bottom of each visualization.
As for read only access...Shield from Elasticsearch might be worth exploring.

Seeing uploaded images in views

using drupal 6.
Modules installed for working with the images:
filefield
image
imageapi
imagefield
imagecache
I made this content type called 'event' where I added the possibility to upload an image.
The preview shows that I successfully filtered the nodes according to type showing the node type and node body just fine.
When I click the '+' next to fields, I'm being given a couple of options about images and the first one seems to be what I'm looking for; image:image.
When I visit the nodes seperately by inserting their path into the address bar, I see the title with the body and the original image below it.
But no matter what I seem to do in views, the list of events won't show any of the images that are part of the nodes. Not even when I set 'image size to show' to orignal.
I figured it out eventually. First, it needed to be an image that is part of the 'content' category under 'fields'. Then I set a thumbnail which I could then select from a dropdown once I've chosen 'content: image'.
Now, something that has to do with the permissions has me floundring again. So that's for a new question I guess.

OOXML - Spreadsheet (.XLSX) created with Ruby won't recalc

I am building a ruby class/component to use in my Rails projects for creating reports/exports based on Excel .xlsx files. With the component, I can open a "template" .xlsx file, add data in rows to a sheet, save and then download the file to the user. It has been working well for several months now.
Now I need to take a pre-existing .xlsx file (think "form"), open it as a template, insert values in several of the cells, and then save and download to the user. For the most part, the process works. The one hitch is that one of the cells I am updating with data is within a range of cells that gets a SUM function applied to it. The problem: the SUM cell doesn't have the correct sum in it.
I've checked the cell both in Excel upon download, and also the underlying xml - the cell and its data is numeric - not text. When I try to manually recalc the sheet - nada. I can update one of the other cells in the range that is getting SUM'd, and it magically starts working - the SUM cell shows the proper total.
I read a post earlier today that mentioned removing the element from the total field in order to signal to Excel when the spreadsheet is opened that it should recalc - nope.
I'd really like to open source this component once I get this further along; I think it would be a BIG help to the Ruby community. Thanks in advance for any help!
Sounds like you need to set the fullCalcOnLoad attribute of the calcPr element to true:
<workbook>
<calcPr fullCalcOnLoad="1"/>
</workbook>
This will cause the Excel document to perform the caluclations within all the workbooks when the file is opened.

Resources