[flexcoders] create new instance to simulate multipage printdatagrid

2007-04-08 Thread wifi19
i'd like  to print to screen a page simulation printdatagrid

while(true)
{
thePrintView.myDataGrid.nextPage();
   
myList.dataProvider.addItem({label:thePrintView});  
}



the render of list


public override function set data(value : Object) : void
 {
super.data = value;

if (value != null)
{

   var  thePrintView2:FormPrintView = value.label;
 
   can.addChild(Sprite(thePrintView2));

} 
}

]]>


  
  

  

i've get one page the reste is canceled

how can i do it

thanks



[flexcoders] Re: addchild error

2007-03-28 Thread wifi19
it's just a exemple

i'd like insert different pages (component FormPrintView()) with 
different page number and parameter with dataprovider.

ps: sorry for my english

my FormPrintView


http://www.adobe.com/2006/mxml"; xmlns="*" 
backgroundColor="#FF"
paddingTop="50" paddingBottom="50" paddingLeft="50" >














 


  





--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Ok, but why would you want to add the same view twice?  Do you want 
to add two different instances?
> 
> ________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of wifi19
> Sent: Wednesday, March 28, 2007 12:07 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: addchild error
> 
> 
> 
> 
> Hie, and thanks
> 
> i'd like make a windows with every page that i want to print before 
> printing to select it
> 
> addpage is for print job isn't it ?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> , "Alex Harui"  wrote:
> >
> > You can't add a child twice. Did you mean to call addPage?
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> ] On Behalf Of wifi19
> > Sent: Tuesday, March 27, 2007 1:57 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] addchild error
> > 
> > 
> > 
> > I am having some trouble with addchild
> > 
> > var thePrintView:FormPrintView = new FormPrintView();
> > 
> > //myHbox.addChild(thePrintView); 
> > var _caPan:Canvas = new Canvas();
> > 
> > _caPan.height=300;
> > _caPan.width = 200;
> > 
> > 
> > _caPan.addChild(thePrintView);
> > _caPan.addChild(thePrintView);
> > 
> > second addchild generate a error
> > 
> > RangeError: Error #2006: L'index indiqué sort des limites.
> > at flash.display::DisplayObjectContainer/getChildAt()
> > at mx.core::Container/getChildAt()
> > at mx.core::UIComponent/set document()
> > at 
> > 
> 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addin
 <http://www.adobe.com/2006/flex/mx/internal::addin> 
> <http://www.adobe.com/2006/flex/mx/internal::addin 
<http://www.adobe.com/2006/flex/mx/internal::addin> > 
> > gChild()
> > at 
> > 
> 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingC
 <http://www.adobe.com/2006/flex/mx/internal::addingC> 
> <http://www.adobe.com/2006/flex/mx/internal::addingC 
<http://www.adobe.com/2006/flex/mx/internal::addingC> > 
> > hild()
> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at MyLoginForm/process()
> > at MyLoginForm/___TitleWindow1_initialize()
> > at 
> > 
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> > entFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at mx.core::UIComponent/dispatchEvent()
> > at mx.core::UIComponent/set processedDescriptors()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.containers::Panel/createComponentsFromDescriptors()
> > at mx.core::Container/mx.core:Container::createChildren()
> > at mx.containers::Panel/mx.containers:Panel::createChildren()
> > at mx.core::UIComponent/initialize()
> > at mx.core::Container/initialize()
> > at MyLoginForm/initialize()
> > at 
> > 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
 <http://www.adobe.com/2006/flex/mx/internal:> 
> <http://www.adobe.com/2006/flex/mx/internal: 
<http://www.adobe.com/2006/flex/mx/internal:> > 
> > :childAdded()
> > at 
> > 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
 <http://www.adobe.com/2006/flex/mx/internal:> 
> <http://www.adobe.com/2006/flex/mx/internal: 
<http://www.adobe.com/2006/flex/mx/internal:> > 
> > :rawChildren_addChildAt()
> > at mx.managers::SystemManager/addChild()
> > at mx.managers::PopUpManagerImpl/addPopUp()
> > at mx.managers::PopUpManager$/addPopUp()
> > at print/doPrint()
> > at print/__printDG_click()
> >
>




[flexcoders] Re: addchild error

2007-03-27 Thread wifi19

Hie, and thanks

i'd like make a windows with every page that i want to print before 
printing to select it

addpage is for print job isn't it ?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can't add a child twice.  Did you mean to call addPage?
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of wifi19
> Sent: Tuesday, March 27, 2007 1:57 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] addchild error
> 
> 
> 
> I am having some trouble with addchild
> 
> var thePrintView:FormPrintView = new FormPrintView();
> 
> //myHbox.addChild(thePrintView); 
> var _caPan:Canvas = new Canvas();
> 
> _caPan.height=300;
> _caPan.width = 200;
> 
> 
> _caPan.addChild(thePrintView);
> _caPan.addChild(thePrintView);
> 
> second addchild generate a error
> 
> RangeError: Error #2006: L'index indiqué sort des limites.
> at flash.display::DisplayObjectContainer/getChildAt()
> at mx.core::Container/getChildAt()
> at mx.core::UIComponent/set document()
> at 
> 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addin
 <http://www.adobe.com/2006/flex/mx/internal::addin> 
> gChild()
> at 
> 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingC
 <http://www.adobe.com/2006/flex/mx/internal::addingC> 
> hild()
> at mx.core::Container/addChildAt()
> at mx.core::Container/addChild()
> at MyLoginForm/process()
> at MyLoginForm/___TitleWindow1_initialize()
> at 
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> entFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()
> at mx.core::UIComponent/set processedDescriptors()
> at mx.core::Container/createComponentsFromDescriptors()
> at mx.containers::Panel/createComponentsFromDescriptors()
> at mx.core::Container/mx.core:Container::createChildren()
> at mx.containers::Panel/mx.containers:Panel::createChildren()
> at mx.core::UIComponent/initialize()
> at mx.core::Container/initialize()
> at MyLoginForm/initialize()
> at 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
 <http://www.adobe.com/2006/flex/mx/internal:> 
> :childAdded()
> at 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
 <http://www.adobe.com/2006/flex/mx/internal:> 
> :rawChildren_addChildAt()
> at mx.managers::SystemManager/addChild()
> at mx.managers::PopUpManagerImpl/addPopUp()
> at mx.managers::PopUpManager$/addPopUp()
> at print/doPrint()
> at print/__printDG_click()
>




[flexcoders] addchild error

2007-03-27 Thread wifi19
I am having some trouble with addchild

  var   thePrintView:FormPrintView = new FormPrintView();

//myHbox.addChild(thePrintView); 
var _caPan:Canvas = new Canvas();
 
  _caPan.height=300;
  _caPan.width = 200;
 

_caPan.addChild(thePrintView);
_caPan.addChild(thePrintView);

second addchild generate a error

RangeError: Error #2006: L'index indiqué sort des limites.
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()
at mx.core::UIComponent/set document()
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addin
gChild()
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingC
hild()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at MyLoginForm/process()
at MyLoginForm/___TitleWindow1_initialize()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set processedDescriptors()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::Panel/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.containers::Panel/mx.containers:Panel::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at MyLoginForm/initialize()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
:childAdded()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
:rawChildren_addChildAt()
at mx.managers::SystemManager/addChild()
at mx.managers::PopUpManagerImpl/addPopUp()
at mx.managers::PopUpManager$/addPopUp()
at print/doPrint()
at print/__printDG_click()




[flexcoders] Printing error with acrobat professional 7

2007-03-19 Thread wifi19

hie.

I've made a basic datagrid printing ( to print with page 3000 line's 
datagrid

when i print to adobe pdf printer i get timeout error !

can you help me ?

my script :

  public function doPrint():void {

var printJob:FlexPrintJob = new FlexPrintJob();
if (printJob.start()) {
// Create a FormPrintView control as a child of the 
current view.
var thePrintView:FormPrintView = new FormPrintView();
Application.application.addChild(thePrintView);

//Set the print view properties.
thePrintView.width=printJob.pageWidth;
thePrintView.height=printJob.pageHeight;
thePrintView.prodTotal = prodTotal;
// Set the data provider of the FormPrintView 
component's data grid
// to be the data provider of the displayed data grid.
thePrintView.myDataGrid.dataProvider = 
myDataGrid.dataProvider;
// Create a single-page image.
thePrintView.showPage("single");
// If the print image's data grid can hold all the 
provider's rows, 
// add the page to the print job. 
if(!thePrintView.myDataGrid.validNextPage)
{
printJob.addObject(thePrintView);
}
// Otherwise, the job requires multiple pages.
else
{
// Create the first page and add it to the print 
job.
thePrintView.showPage("first");
printJob.addObject(thePrintView);
thePrintView.pageNumber++;
// Loop through the following code until all 
pages are queued.
while(true)
{
// Move the next page of data to the top of 
the print grid.
thePrintView.myDataGrid.nextPage();
thePrintView.showPage("last");
// If the page holds the remaining data, or 
if the last page 
// was completely filled by the last grid 
data, queue it for printing.
// Test if there is data for another 
PrintDataGrid page.
if(!thePrintView.myDataGrid.validNextPage) 
{
// This is the last page; queue it and 
exit the print loop.
printJob.addObject(thePrintView);
break;
}
else
// This is not the last page. Queue a middle 
page. 
{
thePrintView.showPage("middle");
printJob.addObject(thePrintView);
thePrintView.pageNumber++;
}
}
}
// All pages are queued; remove the FormPrintView 
control to free memory.
Application.application.removeChild(thePrintView);
}
// Send the job to the printer.
printJob.send();
}



[flexcoders] itemrenderer in

2007-02-20 Thread wifi19
hie

i'd like to build a itemrenderer in mx list i have code

 

 


in main with a script to insert line in list

  myList.dataProvider.addItem({label:grid.selectedItem.titre});

my itemrenderer component



http://www.adobe.com/2006/mxml"; 
horizontalAlign="center" verticalGap="0" borderStyle="none" 
backgroundColor="white" >





 


but i'cant get the label value

can you help me ?

thanks



[flexcoders] http service

2007-02-08 Thread wifi19

hie.

when i use httpservice to request xml i want to use .lastresult and i 
may be use a index to my xml file or à fisrt result command.

can you help me 

my httpservice

http://xxx.dyndns.org/livre/request.php"; useProxy="false" 
method="POST" result="init1()">
  

thanks !



[flexcoders] DATAGRID clic on cell

2007-02-01 Thread wifi19
hie

how can i do to get cell clic on a datagrid without edit this cell

thank!



[flexcoders] creation d'une image a partir du contenu binaire d'un xml ?

2007-01-30 Thread wifi19
Bonjour,

je suis a la recherche d'une solution pour inserer dans un canvas une
photo dont le binaire serait dans un fichier xml

avez vous une solution ?

Merci !




[flexcoders] Init image with binary xml node

2007-01-30 Thread wifi19
Hie !

i'm searching how can i create a image with a binary node in my xml file

 binary file 

can you help me ?
Thanks !



[flexcoders] mettre le binaire d'une image dans le fichier data xml

2007-01-27 Thread wifi19
Bonjour,

je suis a la recherche d'une solution pour inserer dans un canvas une 
photo dont le binaire serait dans un fichier xml

avez vous une solution ?

Merci !



[flexcoders] Re: Gestion des images dans un datagrid

2007-01-27 Thread wifi19
Merci,

je teste cela, mais je suis plutot a la recherche d'une solution pour 
eviter les temps d'attente

n'est il pas possible de mettre le binaire des images dans le fichier 
xml ?

Merci.
Gilles
--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
<[EMAIL PROTECTED]> wrote:
>
> Salut,
>  
> L'example que tu as montré ne chargera pas l'image, il faut que ca 
soit comme ca:
>  
> 
>  
> Tu ne pas chargez tout les images parceque le DataGrid charge les 
images qui sont seleument visible sure l'ecran. Quand tu navige le 
grid pour voir d'autres lignes, la il va chargez le reste des images.
> Si c'est toujours les memes images, peut etres que tu peut les 
chargez une fois est les gardez dans un modele, ca sera plus vite 
apres dans le DataGrid.
>  
> Dimitrios Gianninas
> RIA Developer
> Optimal Payments Inc.
>  
> 
> ________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of wifi19
> Sent: Monday, January 22, 2007 7:11 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Gestion des images dans un datagrid
> 
> 
> 
> Bonjour,
> je cree un datagrid avec une colonne image, mon problème est que 
les 
> images ne se chargent que lorsque nous demandons a les affichées, 
> d'ou un temp d'attente long lorsque l'on navigue dans le data grid 
de 
> 2000 lignes.
> existe t'il une solution pour le forcé a charger les images de 
toutes 
> les lignes même si nous ne lui demandons pas encore de les 
affichées ?
> 
> mon mxml :
> 
> 
> 
> 
>  
> 
> 
>  
> 
> mon xml avec le lien sur l'image
> 
> Merci
> http://fleuvenoir.dyndns.org/livre/Photo.php? 
<http://fleuvenoir.dyndns.org/livre/Photo.php?> 
> id=2&height=60
> 
> 
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e-
mail in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.
>




[flexcoders] Gestion des images dans un datagrid

2007-01-22 Thread wifi19
  Bonjour,
je cree un datagrid avec une colonne image, mon problème est que les 
images ne se chargent que lorsque nous demandons a les affichées, 
d'ou un temp d'attente long lorsque l'on navigue dans le data grid de 
2000 lignes.
existe t'il une solution pour le forcé a charger les images de toutes 
les lignes même si nous ne lui demandons pas encore de les affichées ?


mon mxml :



  
 
  

 

mon xml avec le lien sur l'image

Merci
http://fleuvenoir.dyndns.org/livre/Photo.php?
id=2&height=60



[flexcoders] Re: change menu style

2007-01-12 Thread wifi19
--- In flexcoders@yahoogroups.com, "wifi19" <[EMAIL PROTECTED]> wrote:
>
> 
> hie.
> 
> i use  dataProvider="{menuBarCollection}"  height="25" x="0" y="0" />
> 
> i want to change menu style or graphic representation
> 
> can you help me
> 
> Regards !
>

Nobody s help me ?



[flexcoders] change menu style

2007-01-07 Thread wifi19

hie.

i use 

i want to change menu style or graphic representation

can you help me

Regards !



[flexcoders] Re: use custom object and canvas ?

2007-01-07 Thread wifi19

Thanks & Happy new year!

Wifi19


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The easiest way to change components is to use a ViewStack.  Will 
this
> work for you?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of wifi19
> Sent: Monday, January 01, 2007 12:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] use custom object and canvas ?
> 
>  
> 
> hie !
> i'm beginner with flex2
> 
> i'd like to make application with a tabnavigator and canvas where i 
> change canvas contener with different custom component.
> a script can change a canvas contenner with custom component ???
> 
> i'd like change a canvas with another defined in custom component !
> 
> regards !
>




[flexcoders] use custom object and canvas ?

2007-01-02 Thread wifi19
hie !
i'm beginner with flex2

i'd like to make application with a tabnavigator and canvas where i 
change canvas contener with different custom component.
a script can change a canvas contenner with custom component ???

i'd like change a canvas with another defined in custom component !

regards !