Discuss anything related to web development but no technical support questions


Post by afiume »

Hi guys,

with Gantt chart, if i run Gnt.print(), print the chart.

My chart have a custom html in event renderer:
 
eventRenderer: function (taskRecord) {
         [...] 
return {
               myCustomField: html
          };
but, when print, in my paper i dont see my div. I see dependency arrow, tree, but the my custom div no.

Why?

Thanks,

Tony

Post by arcady »

It's hard to say without seeing your source code. Can you please give us a short test case so we could investigate the issue?

Post by afiume »

arcady wrote:It's hard to say without seeing your source code. Can you please give us a short test case so we could investigate the issue?
mhmm is very hard to create a short source code.
There are webservice, more css, i modify the source template and other. :(

Post by arcady »

All you need to do is put server responses to static json files and target your stores to them instead of you server scripts.
That's how you get standalone sample working without server web-services. Not so difficult really. :)

Post by afiume »

arcady wrote:All you need to do is put server responses to static json files and target your stores to them instead of you server scripts.
That's how you get standalone sample working without server web-services. Not so difficult really. :)
i think the problem is a background propriety.

If i set border: 1px solid black, i see the border in my paper print.
The background/background-color/background-image not work in a print.

Why? :(

Post by arcady »

Do you turn on background printing in your browser?

Post by afiume »

arcady wrote:Do you turn on background printing in your browser?
Sorry i dont understand.

In my brower i see my div with background.
When i print i see the div with background in a print preview.

But when i see the pdf print or the paper print, the background not in visibile

Post by afiume »

I think is a bug with Gant 2.1.6 version or bug with ext 4.2.1.

I can't use other version

Post by afiume »

Sorry for the more reply.

The problem could be fakeBackgroundColor propriety?

https://www.bryntum.com/products/gantt-for-extjs/docs/ ... roundColor

If with firebug i run:

Gnt.plugins[0].fakeBackgroundColor = false;
Gnt.print();

the div are always not visible :(

Perhaps i wrong the method?

Post by mats »

Can you reproduce this bug in any of our samples? To give you further assistance, we require a simple test case.

Post Reply