Export Visio Diagram to XAML in Ruby

Aspose.Diagram - Export Visio Diagram to XAML

To Export Visio Diagram to XAML using Aspose.Diagram Java per Rubino , semplicemente invocareExportToXaml modulo. Qui puoi vedere il codice di esempio.

Codice Rubino

 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

\# Call the diagram constructor to load diagram from a VSD file

diagram = Rjb::import('com.aspose.diagram.Diagram').new(data_dir + "Drawing.vsd")

\# Save as XAML

diagram.save(data_dir + "Diagram.xaml", Rjb::import('com.aspose.diagram.SaveFileFormat').XAML)

puts "Exported visio diagram to XAML."

Scarica il codice in esecuzione

Scarica**Export Visio Diagram to XAML (Aspose.Diagram)**da uno qualsiasi dei siti di social coding sotto indicati: