# ReportWriter: corrected images cut

**URL:** <https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775>\
**Category:** General Questions/Discussions\
**Created:** [March 26, 2009, 12:54am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775 "2009-03-26T00:54:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [March 26, 2009, 8:42am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/1 "2009-03-26T08:42:02Z")

</div>

Hi,  
I have a request.  
I generate my document with report Writer.  
I inserted some diagram’s figures into my document, but If my diagram’s figure is big, It wasn’t formatted correctly, the diagram’s figure is cut.

I used this code to put diagram’s figure into my document

how can I obtain the proper layout of the figure?

I attach the document with the figures cut

Thanks   
[ImageCut.doc](https://forums.visual-paradigm.com/uploads/default/original/2X/b/b3cda8ba0e4283317db65455b1a3bfb64174ab0f.doc)

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [March 27, 2009, 10:19am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/2 "2009-03-27T10:19:25Z")

</div>

Hi user,

Thanks for your post and details, I’ve forwarded the issue to our engineers to investigate, and will come back to you when there is any feedback.

Best regards,  
Lilian Wong

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [March 31, 2009, 5:33pm UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/3 "2009-03-31T17:33:37Z")

</div>

Hi user,

I would like to inform you that we enhanced to support @width and @height, please download and install the patch in the following link:  
[http://files2.visual-paradigm.com/200903/Patch/sp2\_20090312r/VP\_Suite\_Windows\_3\_4\_sp2\_20090312r.exe](http://files2.visual-paradigm.com/200903/Patch/sp2_20090312r/VP_Suite_Windows_3_4_sp2_20090312r.exe)

BTW, if you only define @width, the height of diagram image will be calculated in ratio of image size automatically. You can refer to the attached image. Hope this helps.

Best regards,  
Lilian Wong

 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/3/363e7a57b68a85ecfd9f7e52c242e4690a620bca.png)  
width\_height.png

---

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [April 2, 2009, 9:02am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/4 "2009-04-02T09:02:03Z")

</div>

I Lilian,  
I installed the last patch VP\_Suite\_Windows\_3\_4\_sp2\_20090312r.exe  
But the figure are not well formatted. The figures are very small!!  
I used this code xml

is this correct?

I send the document and the project.vpp into support email [support-team@visual-paradigm.com](mailto:support-team@visual-paradigm.com)

Thanks, Anna

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [April 3, 2009, 1:05pm UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/5 "2009-04-03T13:05:13Z")

</div>

Hi Anna,

Thanks for your reply. I’ve forwarded the problem to our engineers to investigate.

Best regards,  
Lilian Wong

---

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [April 8, 2009, 8:48am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/6 "2009-04-08T08:48:59Z")

</div>

Hi Lilia,  
I worked with this patch VP\_Suite\_Windows\_3\_4\_sp2\_20090312r and now I haven’t the problem, so It’s ok for me!

thanks, very much, Anna

---

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [April 8, 2009, 8:48am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/7 "2009-04-08T08:48:59Z")

</div>

sorry, I work with sp2\_20090312t and the problem with images is ok!!!  
I haven’t the problem!

thanks, Anna

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [April 9, 2009, 6:43pm UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/8 "2009-04-09T18:43:49Z")

</div>

Hi Anna,

That’s good. And in latest patch, we added @maxWidth @maxHeight for diagram image, you can set one/both/none of these 2 attributes. You can find the latest patch from the following link:  
[http://files2.visual-paradigm.com/200904/Patch/sp2\_20090409b/VP\_Suite\_Windows\_3\_4\_sp2\_20090409b.exe](http://files2.visual-paradigm.com/200904/Patch/sp2_20090409b/VP_Suite_Windows_3_4_sp2_20090409b.exe)

Best regards,  
Lilian Wong

---

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [April 10, 2009, 9:25am UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/9 "2009-04-10T09:25:09Z")

</div>

Thanks Lilian  
You can to write a small example to use correctly these (@maxWidth @maxHeight ) attributes?

Thanks vary much.

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [April 14, 2009, 5:22pm UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/10 "2009-04-14T17:22:23Z")

</div>

Hi Anna,

Sorry for my late response. I’ll ask our engineers to provide a sample and will come back to you asap.

Best regards,  
Lilian Wong

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [April 15, 2009, 4:31pm UTC](https://forums.visual-paradigm.com/t/reportwriter-corrected-images-cut/10775/11 "2009-04-15T16:31:10Z")

</div>

Hi Anna,

You can refer to the image below of the result with @maxWidth and/or @maxHeight specified. In this example, we specified the template VPSuite/resources/Report/Default/ActivityDiagram/DiagramImage.xml  
e.g.

If the width of image \> maxWidth (similar to maxHeight), the image size will be scaled accordingly.

Hope these help.

Best regards,  
Lilian Wong

 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/0/011374692efa95d0768547d9e47ff09847105855.png)  
maxWidth\_and\_maxHeight.png
