Rich Text in SVG Export

Stimulsoft Reports.NET discussion
Post Reply
FDS
Posts: 10
Joined: Thu Jan 16, 2014 8:11 am

Rich Text in SVG Export

Post by FDS »

Hi,

I have a report which loads an rtf file at runtime, it also concatonates some text with a field value (for example "Total Qty: {QtyField}").
When I export to SVG, the Rich Text Component and the concatonated field lose their text attributes, so they export as image components.

Is there anyway to rectify this - my client needs to send the SVG to a printer who needs the text attributes preserved?

regards,

Jon.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text in SVG Export

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Please, send us more detailed information about your issue as described in the next article.

Thank you.
FDS
Posts: 10
Joined: Thu Jan 16, 2014 8:11 am

Re: Rich Text in SVG Export

Post by FDS »

I have sent an email to support with the appropriate files attached. Thanks.

Jon.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Rich Text in SVG Export

Post by Andrew »

Dear Jon,

Currently, we cannot identify the letter you sent us. Please give us either the e-mail subject or ticket number, if you already have it.

Thank you.
FDS
Posts: 10
Joined: Thu Jan 16, 2014 8:11 am

Re: Rich Text in SVG Export

Post by FDS »

Hi,

I still would like to know if you can make it possible to preserve the text formatting in an svg export.
I have attached a zip with 2 files - TestSVG.svg & TestSVG.xml

TestSVG.xml is just the SVG file with the extension changed. AS you can see from the below, it stores text formatting information, which if I open in an SVG editor (I am using DRawPLus) the test is treated as such, and not as an image so I can still change it's properties. I have a customer who exports their reports to SVG to send to a printer who needs to be able to edit the text object. Can you make the export to SVG preserve the text formatting from a RTF object?

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="132" height="31">
<g id="dp_dp001" transform="matrix(1,0,0,1,0.196,23.676)">
<text id="dp_text001" xml:space="preserve" fill="black" font-family="Times New Roman" font-size="16" font-weight="400" x="0" y="0">This is </text>
<text id="dp_text002" xml:space="preserve" fill="black" font-family="Times New Roman" font-size="27" font-weight="700" font-style="italic" x="47.1467" y="0">some</text>
<text id="dp_text003" xml:space="preserve" fill="black" font-family="Times New Roman" font-size="16" font-weight="400" x="103.468" y="0"> text</text>
</g>
</svg>

Thanks,

Jon.
Attachments
TestSVG.zip
Sample File
(952 Bytes) Downloaded 355 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text in SVG Export

Post by HighAley »

Hello.

Here is a svg file that is exported from our product. Do you need such SVG file?
Report001.zip
(560 Bytes) Downloaded 345 times
Thank you.
FDS
Posts: 10
Joined: Thu Jan 16, 2014 8:11 am

Re: Rich Text in SVG Export

Post by FDS »

That is exactly what I need. If I open that file I can still edit the text objects. However in my report, I have a formatted RTF file which I load at runtime. When I export the report to SVG the RTF object gets converted to image data. I need the RTF object to be preserved as text, just like your Report001 example.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text in SVG Export

Post by HighAley »

Hello.

Unfortunately, it's impossible to export RichText to SVG now. We are working in this direction.
We have in plans to add this feature during a year.

Thank you.
FDS
Posts: 10
Joined: Thu Jan 16, 2014 8:11 am

Re: Rich Text in SVG Export

Post by FDS »

Hi,

Is this still something you guys are working on?

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text in SVG Export

Post by HighAley »

Hello.
FDS wrote:Is this still something you guys are working on?
This task turned into a big problem. The Rich Text and SVG are completely different formats. And we don't see easy solution of this problem now.

Thank you.
Post Reply