# Visualize a report without download

**URL:** https://discuss.tryton.org/t/visualize-a-report-without-download/5930
**Category:** Ideas
**Created:** [February 13, 2023, 10:33pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930 "2023-02-13T22:33:22Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [February 13, 2023, 10:33pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/1 "2023-02-13T22:33:22Z")

</div>

Rational

It may be useful to have a Screen to preview a PDF report before download, send or print it.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/e/e97b457692e9fe7e8d292990eb4f1df6c387ef35.png)

* * *

Proposal

Add a preview button similar to Print button but instead of download or direct print it as Tryton client do.

This button could has two ways of work:

- Download or preview reports.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/f/f24ee6723985225bce996aae64258997264ea679.png)

Also when a report in generated from a Wizard has the option of preview it.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/2/2abcfa6c502765ff240166ad89893aa529781bb2.png)

* * *

## Implementation

TO BE DONE.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 13, 2023, 10:39pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/2 "2023-02-13T22:39:46Z")

</div>

I do not see the point. To display anything in the client it needs to be downloaded.  
Also report display data that are already encoded in the system so it is not really useful to have it next to the data input.  
And finally by default the reports are in OpenDocument which are not really supported as preview.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [February 13, 2023, 11:29pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/3 "2023-02-13T23:29:04Z")

</div>

Some reports need to be downloaded many times same day only to be previewed. Insted of have many files of same report you could have a preview of it, after it, you only need to close the preview.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c30e4115b4468524a629b8cd154af22e306ade11.png)

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 14, 2023, 12:09am UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/4 "2023-02-14T00:09:12Z")

</div>

> [@iehoshia](#):
>
> Some reports need to be downloaded many times same day only to be previewed.

Then it should not be a report but a view.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [February 14, 2023, 3:59am UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/5 "2023-02-14T03:59:38Z")

</div>

Yes, you’re right. But sometimes I need to create custom views, so, is easy create a PDF report like:

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/5/54aed256a6e4e1c4e1be5df4a0135d9910680b2d.png)

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/e/ea309d3773de8f5074ea2d8e4237850377db4902.png)

The best option could be a view that I can customize like a report (it may include graphs).

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [February 14, 2023, 9:52am UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/6 "2023-02-14T09:52:24Z")

</div>

> [@iehoshia](#):
>
> The best option could be a view that I can customize like a report (it may include graphs).

Not much customizable as a report, but maybe you can use the [board view type](https://docs.tryton.org/projects/server/en/latest/topics/views/index.html#board) which is shown in the [dashboard module](https://docs.tryton.org/projects/modules-dashboard/en/latest/index.html)?

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [February 14, 2023, 1:40pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/7 "2023-02-14T13:40:30Z")

</div>

> [@udono](#):
>
> Not much c

A mix of graph and data will be great, but, in my case, to generate custom reports data I generally use dicts or dataframes, so, I would like to have a view where I can render data (using somethings like Weasyprint) inside Tryton. Instead of generate a report I can use a view.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/0/0480d9b0b951070d30548d85f8d8f15446028b61.png)

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 14, 2023, 1:53pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/8 "2023-02-14T13:53:51Z")

</div>

The balance sheet already exists in Tryton as a tree view.  
It is more powerful to format data as ModelStorage in Tryton because it can be reused and it integrates well.  
Indeed it can be a little more work but this creates better user experience. At least that the assumption Tryton is based on.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [February 14, 2023, 4:09pm UTC](https://discuss.tryton.org/t/visualize-a-report-without-download/5930/9 "2023-02-14T16:09:11Z")

</div>

Yes, Model Storage is a powerful and functional, but sometimes only need a little bit more of flexibility and simplicity (hide records with value 0 in tree view will help a lot).

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/5/544c68fdd295214c036ccf825a091e2c009dcfa0.png)

I give you that example but it can work with other reports (cash flow and other financial statements).

> [@ced](#):
>
> Indeed it can be a little more work but this creates better user experience. At least that the assumption Tryton is based on.

Tryton experience is one of the best to data analysis but other ways to display info will be great.
