Ticket T320563
Visible to All Users

DiagramControl - How to save data to SQL

created 9 years ago

Hi at DevE…

And first  - thanks for the update to 15.2 :-)

But one of the new things is the diagram function and of course one of the things I started looking at.

I took some tweaking, but figured out getting all of the shapes out, so they could be used by the end user. Why they haven´t been made available in the standard, I can´t figure out - but I am sure you have your reasons.

But, work has to be saved, and as I use a database I used the stream approach (like with Dashboards), but… In the Dashboard the e.handled = true prevents the savediaglog to appear, but in the "DiagramSaveDocumentBarItem1.ItemClick" event, the e - parameter doesn´t have this function.

Is there a workarround, or… ???
Of course, what I want to achieve is, then the button is pressed, then data/stream is saved to my database (and this works), but then the save-dialog is shown - and it is this that I want to prevent, and has done so before with the e.handled setting.

Regards,

Michael

PS. I know you do not want two questions a once, but - a quick reply - is it possible to print/export to pdf the drawn diagram, or ??? And is the only page-size settings the size of the area ?

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Hi,

We are happy to hear that you like our new major version 15.2 :).

As for your questions, in order not to mix multiple questions within one thread, I have extracted your inquiries to separate tickets:

How to show all the spaces in Toolbox,
How to save data to SQL without showing the Save File Dialog,
How to change a page size,
DiagramControl - Support export/print functionality

Please refer to them for further discussion.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.