Hi Don,

Thanks for the specimen code.
I tried to write the same code , with my required
fields in the label for the existing report location
Label in Inventory management Module ->reports. (Ax3.0
sp1)

Before this i created one .btw file in Bartender
application named "location label.btw" and put that in
the code u provided.

But its giving me compilation error at this line
"comBTFormats.Open(LocationLabel.text(),true,"");"

just not getting any idea...is i am missing anything?

i alreday registered the COM.

your suggestion...will be a great help for me..

waiting for a reply....

thanks in advance
Akash
--- Don Price <[EMAIL PROTECTED]> wrote: >
Remove the #'s as I ripped this from one of my xpos.
>  In the label we
> have controls that match the names below like
> STCompany. Hope this
> helps.
>
>
> #void clicked()
>                 #{
>                 #
>                 #    Com comBTApp;
>                 #    Com comBTFormat;
>                 #    Com comBTFormats;
>                 #    com comBTSubString;
>                 #    int i;
>
>   // Start the Bar Tender application
>                 #    comBTApp = new
> Com("BarTender.Application");
>                 #    comBTFormats =
> comBTApp.Formats();
>                 #    //Open the Demo.btw format file
>                 #    comBTFormat =
> comBTFormats.Open(FileName.text(),true,"");
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STCompany");
>                 #  
> comBTSubString.value(STCompany.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STAddr1");
>                 #  
> comBTSubString.value(STAddr1.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STAddr2");
>                 #  
> comBTSubString.value(STAddr2.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STCity");
>                 #  
> comBTSubString.value(STCity.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STState");
>                 #  
> comBTSubString.value(STState.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("STZip");
>                 #  
> comBTSubString.value(STZip.text());
>                 #
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("Supplier");
>                 #  
> comBTSubString.value(Supplier.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("CustPO");
>                 #  
> comBTSubString.value(CustPo.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("Release");
>                 #  
> comBTSubString.value(Release.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("RevLevel");
>                 #  
> comBTSubString.value(RevLevel.text());
>                 #
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("PartNbr");
>                 #  
> comBTSubString.value(PartNbr.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("PartDesc");
>                 #  
> comBTSubString.value(PartDesc.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("Quantity");
>                 #
>
comBTSubString.value(int2str(str2int(Quantity.text())));
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("PkgId");
>                 #  
> comBTSubString.value(PkgId.text());
>                 #    comBTSubString =
> comBTFormat.NamedSubStrings("CustPartNbr");
>                 #  
> comBTSubString.value(CustPartNbr.text());
>                 #
>                 #
>                 #     //'Print the label
>                 #     for(i=1;i<=NumLabels.value();
> i++)
>                 #       
> comBTFormat.PrintOut(false,false);
>                 #
>                 #
>                 #
>                 #     comBTApp.Quit(1);   // Quit,
> Don't save changes
>                 #
>                 #
>                 #}
> -----Original Message-----
> From: akash malohatra [mailto:[EMAIL PROTECTED]
>
> Sent: Tuesday, June 08, 2004 1:30 AM
> To: [EMAIL PROTECTED]
> Subject: [development-axapta] label printing
>
> Hi all,
>
> Is there anyone used Bartender software for label
> printing.
>
> Can this will be integrated to Axapta through COM..
>
> I will appriciate for any Info/examples.. on this...
>
> thanks in Advance
> Akash....
>
>
>      
>      
>            
>
____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Yahoo! Domains - Claim yours for only $14.70
>
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
>
--------------------------------------------------------------------~->
>
>

> Yahoo! Groups Links
>
> http://groups.yahoo.com/group/development-axapta/
>
>      [EMAIL PROTECTED]
>




     
     
           
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com

Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to