XAML import/export in Office 2007 applications much desired

J

Jan Sichula

During last months I have become more and more convinced that .NET 3.0 is the
platform that will cover all my development needs. I am really impressed by
WPF and keen to learn it for this is really a promise of power and simplicity
come true. Presently I am gradually moving most of my production toward XAML
based workflow. My discovery is that Expression Interactive and Graphics
designer are great tools and I am already producing some graphics using those
tools. The problem is how to import XAML into Office 2007. So far I was
unable to discover any way to do it. Also I have a lot of graphics and
diagrams and clip art stored in Office files (as part of Word files and
PowerPoint presentations). My need is to export them into XAML in a lossless
way. How to go about it? Should we use WMF and EPS for importing into Office
2007 applications? This means I am losing all the advantages of new format.
Please make XAML a full rights citizen of Office 2007. This will help many to
move toward XAML and accelerate transition away from old and limited
interchange formats.

Jan Sichula
(Slovak Republic)
 
P

Patrick Schmid

Hi Jan,

I really have to ask why? XAML is a UI markup language. That means it
has nothing to do with documents, spreadsheets or presentations. The
products you mentioned are designed for developers writing UIs. They are
not designed though for Office applications were users produce documents
and not UIs.
I really don't see why Office should support XAML.

Patrick Schmid
 
J

Jan Sichula

Hello Patrick,

what follows is a polite response to your question and a detailed defense
why XAML support should be included in all Office applications. I am working
with XAML almost daily building some WPF browser and stand alone applications
and preparing for WPF/E enabled websites so everything I write is related to
my day to day work and activity. You are right that XAML is uniquely able to
function as a UI declarative description language but this does not exhaust
the scenarios where it can be used and is indeed used. XAML is enormously far
and wide reaching and encompassing technology. It has wonderful support for
vectors, brushes, text, shapes, gradients, etc. which makes it excellent for
all document and art work where resolution independence is important with
added flexibility and programmability. Simply expressed — XAML is much more
than a UI interface language; it is EPS and WMF of new generation that frees
us from PostScript and GDI which are some 20 years old technologies.
For example, notice the fact that XPS is a subset of XAML and can describe
complex documents with full fidelity. If XPS can directly function as a
replacement for PDF, then XAML in general can perfectly serve as an EPS and
WMF replacement.
The situation is very similar to Mac OS X. PDF is used in Mac OS as
technology behind UI rendering
(http://www.apple.com/macosx/features/quartzextreme/). Does it mean that this
is the only way PDF can be used? Far from it. Adobe applications have since
long ago started to support PDF as universal interchange format for vector
and bitmap resources. I am only asking that XAML would become the same for
Microsoft programs — a true universal interchange format for vector and
bitmap resources.
It is not fair to say that Expression Graphic Designer is program to be used
for UI creation only. It is a general purpose graphics program that is
competing with Photoshop and Illustrator. It can be used for UI creation but
it is only one tiny part of possibilities. Personally I use it mainly for
creation of graphic resources that are then incorporated into documents and
web sites. People have been using Adobe Photoshop and Illustrator for years
for UI work but it does not follow that those two programs are UI only tools.
Already now Microsoft people I talking about XAML ClipArt, just check
following:

http://blogs.msdn.com/wpfsdk/archive/2006/06/02/XAML_Clip_Art__A_Ferry_and_a_Raven.aspx
http://blogs.msdn.com/wpfsdk/archive/category/13381.aspx

What if I want to place such XAML ClipArt into PowerPoint or Word document?
How should I proceed?

The advantages to XAML when compared to old interchange formats are great
and many:

1. It is XML based. I can hand edit and tweak it at any time. Try to do that
with EPS or WMF files.
2. I can easily program custom applications with whatever functions I need.
Try to do that with EPS or WMF files.
3. The EPS support in Office is really a kind of kludge. The import filter
is produced by 3-rd party. The preview is not good and precise. Rendering
tends to be very slow. It sometimes crashes Word, etc. On the other hand XAML
is owned by Microsoft. They can make if perfect and high performance and rock
solid part of Office.

Here are some simple elementary scenarios that I have on my mind:

1. I have a vector art produced in Expression Graphic Designer, let’s say it
is a logo of my company. Now I want to import it into Word or Publisher as a
vector object so that it is printed at full resolution whether at office
laser printer or at imagesetter. This scenario is not supported now. Moreover
EPS files are many times quite unreliable.

2. Using Graphic Designer I have produced some ClipArt or graphic parts that
I will use for my XBAP or WPF or WPF/E applications. But I also want to use
it in some documents and brochures in Word and Publisher. What now, which way
to go?

3. I have produced some UI parts using Interactive Designer. Wanting to
implement consistent company identity, I want to use the same parts in my
Word documents. What now, which way to go?

4. I have diagrams, clip arts, schemes, charts, and shapes in Office files
created as part of lectures on biology, history, archeology, theology, etc.
Let us say I want to produce an education website build using WPF or WPF/E
and use those parts from Office files transforming them into XAML resources.
How should I proceed? There is currently no way that I know about.

For me those are all real scenarios that I am personally involved with.

My conclusion: XAML needs to be to Office what PDF is to Adobe Creative
Suite. That means a rock solid and high performance vector/bitmap interchange
format. For me this is a real daily need.

Jan Sichula
(Slovak Republic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top