Select to view content in your preferred language

Print with AlivePDF

1383
6
08-24-2011 05:22 AM
FaizanTayyab
Deactivated User
Hi,

I have the print widget working fine with FV 1.3 (displays everything including the legend), however now i need to port this to FV 2.4.

What is the best way to achieve this. I believe the Legend is accessed different in AGS 10 SP1, hence the mechanism to include the Legend will have changed as well.

Any advice? or alternatives

Thanks
Tags (2)
0 Kudos
6 Replies
FaizanTayyab
Deactivated User
I have been able to get the print to work, however can someone point in the right direction on how to include the Dynamic Legend (Robert's widget) into the print.

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Faizan,

   If you post the code you had working in 1.3, I will see what I can do. No guarantee when I will have time though.
0 Kudos
FaizanTayyab
Deactivated User
Thanks for the reply Robert. I am attaching the widget code that might give you some idea. There is whole loads of other classes as well which are used, however i think with the widget code might be able to help with implementing your dynamic widget into the print.

Thanks
0 Kudos
FaizanTayyab
Deactivated User
I have tried to incoporate the Dynamic Legend code, inside the SFV1.3 code and its seems that all the data is coming in through fine. I get the LegendAC filled up will all data including image data. However as i am not using the LegendItemRenderer, it seems, transfering the LegendAC data into the AlivePDF grid is not working and hence the legend is not getting displayed.

In the dynamic legend widgets, the LegendAc is the dataprovider for LedgendDataGroup, however i need to populate the AlivePDF grid with the LegendAc data.

Anyone already tried this?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Faizan,

  I thought you said
I have the print widget working fine with FV 1.3 (displays everything  including the legend), however now i need to port this to FV 2.4.
So are you saying that you did not have the legend working?
0 Kudos
FaizanTayyab
Deactivated User
Hi Robert,

Sorry for the confusion, the SFV1.3 code works and the print contains the legend. What i was saying refers to what i am currently trying to do in SFV2.4, that is bring your dynamic legend into the SFV1.3 print code i copied over to SFV 2.4. Everything prints fine apart from the legend (which is not printing).

On further looking in the dynamic legend code, it seems that the legend items are filtered in the renderer (please correct me if i am wrong) which i am not doing currently. In my scenario, i create an AlivePDF grid which takes an array, but for some reason it is not getting displayed.

I need a way to get the dynamic legend content (after filtering based on visibility and scales) into an arraycollection, which i can then use in the AlivePDF grid. I think it would work then.

I am attaching what i have tried so far.
0 Kudos