Hi,

Im also looking for some solution to this problem, printing images with
source set as url.
If you already found some solution, can you please share it.

Thanks,
Deepa


halvas_trevor wrote:
> 
> yes i understand how to use the printJob class, but this doesn't address
> how to print an image or multiple images from a database with the source
> set to a URL.
> 
> You can't embed an image that isn't local.
> 
> 
> 
> Sidhu Vijay Sidhu wrote:
>> 
>> <?xml version="1.0"?>
>> <!-- printing\DGPrint.mxml -->
>> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>> 
>>     <mx:Script>
>>         <![CDATA[
>>             import mx.printing.*;
>> 
>>             // Create a PrintJob instance.
>>             private function doPrint():void {
>>                 // Create an instance of the FlexPrintJob class.
>>                 var printJob:FlexPrintJob = new FlexPrintJob();
>> 
>>                 // Start the print job.
>>                 if (printJob.start() != true) return;
>> 
>>                 // Add the object to print. Do not scale it.
>>                 printJob.addObject(this, FlexPrintJobScaleType.NONE);
>>   printJob.addObject(this.myDataGrid, FlexPrintJobScaleType.NONE);
>>                 // Send the job to the printer.
>>                 printJob.send();
>>             }
>>         ]]>
>>     </mx:Script>
>> 
>>     <mx:VBox id="myVBox">
>>         <mx:DataGrid id="myDataGrid" width="300">
>>             <mx:dataProvider>
>>                 <mx:Object Product="Flash" Code="1000"/>
>>                 <mx:Object Product="Flex" Code="2000"/>
>>                 <mx:Object Product="ColdFusion" Code="3000"/>
>>                 <mx:Object Product="JRun" Code="4000"/>
>>             </mx:dataProvider>
>>         </mx:DataGrid>
>>         <mx:Button id="myButton"
>>             label="Print"
>>             click="doPrint();"/>
>>     </mx:VBox>
>> </mx:Application>
>> 
>> On Mon, Jul 19, 2010 at 10:42 PM, halvas_trevor
>> <[email protected]>wrote:
>> 
>>>
>>> Did you ever get this figured out? I am having the same issue... any
>>> help
>>> you
>>> can give would be most appreciated
>>>
>>>
>>>
>>> abanapurmath wrote:
>>> >
>>> > To elaborate,
>>> > I am getting a list of URLs, which point to different pictures of
>>> > different people. If I assign the Image.source value to this, the
>>> image
>>> > does not get printed, as stated above here. Embed does not work if the
>>> > image is not present at compile time. Please help out.
>>> >
>>> >
>>> > abanapurmath wrote:
>>> >>
>>> >> How do I print the image, if the image is not available at compile
>>> time?
>>> >>
>>> >>
>>> >> sam-147 wrote:
>>> >>>
>>> >>>
>>> >>> Thanx a million guys!!!
>>> >>>
>>> >>> I got it!!!
>>> >>>
>>> >>> On Jul 8, 4:28 pm, Kalpataru Roy <[email protected]> wrote:
>>> >>>>  Use Embed image for  image Printing
>>> >>>> also set height and width property of the image (best practice)
>>> >>>> ..
>>> >>>>
>>> >>>> <mx:HBox width="34%" horizontalAlign="right">
>>> >>>>         <mx:Image source="@Embed ( source = 'images/logo.jpg' )"
>>> >>>> height = "XX" width = "XX" />
>>> >>>> </mx:HBox>
>>> >>>>
>>> >>>> Kalpataru Roy
>>> >>>> +919850021354
>>> >>>
>>> >>> --~--~---------~--~----~------------~-------~--~----~
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Flex India Community" group.
>>> >>> To post to this group, send email to [email protected]
>>> >>> To unsubscribe from this group, send email to
>>> >>> [email protected]
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/flex_india?hl=en
>>> >>> -~----------~----~----~----~------~----~------~--~---
>>> >>>
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/-flex_india%3A11533--Printing-Image-in-Flex-tp18335707p29210770.html
>>> Sent from the Flex India mailing list archive at Nabble.com.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex_india%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex_india?hl=en.
>>>
>>>
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-flex_india%3A11533--Printing-Image-in-Flex-tp18335707p32298405.html
Sent from the Flex India mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to