DateTime Format Issue

Stimulsoft Reports.JS discussion
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

I do however have a new question, it is possible to pass base64encode data via JSON and have it populate an image component? I set the column to be a string and link the image component to the image column

EDIT:

Seems to work fine in the designer, still not showing my picture data on the web, might be on my end though, will see what I find.

The designer had some odd behavior though when adding an image component to the canvas. It makes it impossible to close the current file and leaves a "spinny wheel" in the designers status bar at the bottom. This is on a Mac btw.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

Could you specify how do you show the report in the Viewer?
Could you send us a small sample?

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

Not certain why but just on this particular mac I'm on every so often has to have the cache cleared in Chrome otherwise I never see changes, everything seems to be working as it should at this point.

I did have a few vanity questions.

1)Is it possible to turn the "Open" button of on the toolbar in the viewer.
2)Is it possible to access the underlying functions for buttons such as print and export to PDF so that if needed we could provide them to another toolbar for seamless integration into existing web apps?

EDIT:
Additional Question just to save time, how would one do a regex expression for a cell? Similar to like jQuery would be ...text.replace(/(\d{2})(\d{7})/, "$1-$2")
This would format a string to 00-0000000 from 000000000 for instance.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

Code: Select all

1)Is it possible to turn the "Open" button of on the toolbar in the viewer.
Sorry, maybe we don't understand your question. Could you describe your question more detailed? Do you need to hide the button?

Code: Select all

2)Is it possible to access the underlying functions for buttons such as print and export to PDF so that if needed we could provide them to another toolbar for seamless integration into existing web apps?
You could use Print() or Export methods to do this.

Code: Select all

Additional Question just to save time, how would one do a regex expression for a cell? Similar to like jQuery would be ...text.replace(/(\d{2})(\d{7})/, "$1-$2")
This would format a string to 00-0000000 from 000000000 for instance.
You could use the Text Format property to format the text. Or you could use the Custom user functions.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

1. Hiding the Open button on the toolbar similar to this:

options.toolbar.showDesignButton = false;
options.toolbar.showAboutButton = false;
options.toolbar.showFullScreenButton = false;

options.toolbar.showBookmarksButton = false;
options.toolbar.showParametersButton = false;
options.toolbar.showZoomButton = false;
options.toolbar.showViewModeButton = false;

Reference Link: https://www.stimulsoft.com/en/documenta ... oolbar.htm

2. I was more curious about how to do that Print with Preview as well as Exporting to Excel since those two aren't covered in the documentation unless I missed it.

3. I figured out this via Custom Text Format of "##-#######"
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

1. You could use next option to hide the Open button in the Viewer:

options.toolbar.showOpenButton = false;

2. There are some different methods of printing in the Viewer, but there is one way for printing by code. You could find it here https://www.stimulsoft.com/en/documenta ... inting.htm

Also you could find description of the Export methods here https://www.stimulsoft.com/en/documenta ... report.htm.

3. Great! You could use the Text Format for this.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

#1 works, cheers to that one.
#2 will check out in the coming days
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

We are waiting for your results.
Let us know if you need our help.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

I've been out for a few weeks and just tried the export options, seems satisfactory to me.

I don't suppose there is a means of doing the Next Page, Last Page, First Page, Previous Page iterations outside of the viewer's own toolbar is there?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

If we understand you right, you need to add the Next Page, Last Page, First Page, Previous Page buttons on your toolbar, you could use next code:

Code: Select all

viewer.jsObject.postAction("FirstPage");
viewer.jsObject.postAction("PrevPage");
viewer.jsObject.postAction("NextPage");
viewer.jsObject.postAction("LastPage");
Thank you.
Post Reply