I made a Label-Typ report to create labels which should include the Item.Picture field. I can't find any good example in the C/AL reference guide how to accomplish this, all outstream examples uses text.
When I try to assign the following to a variant variable the compiler doesn't like the syntax.
recitem.Picture.CREATEOUTSTREAM(pic);where pic is an Outstream global.
How would I get the resault which I'd like to assign to an Arr[]?
0
Comments
2) It means to use something like recItem[1].Picture etc.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I will not repeat what I wrote. You cannot just replace text variable by picture variable in NAV. It is not working in this case. You need to change the logic and use array of records instead array of text variables. And you cannot use same control as for text when you want to show picture.
But because for me it seems that you are not skilled in this, I recommend to read some documentation first, or just to try how to show some picture in simple report.
If you will succeeded in this simple task, try second step - show two pictures in one section.
The wizard is not working in this case, you need to do some C/AL coding for that and create the controls on the sections manually.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Addr[ColumnNo][1] := FORMAT("No.");
Addr[ColumnNo][2] := FORMAT(Description);
Addr[ColumnNo][3] := FORMAT(Picture);
Addr[ColumnNo][4] := FORMAT("Recommended Price");
Addr[ColumnNo][5] := FORMAT(Barcode);
Addr[ColumnNo][6] := FORMAT("Label Text");
You cannot format Picture to text [-X
You cannot use Addr variable for picture [-X
Sorry, but may be someone other will be able to describe the solution for you. ](*,)
But once again, try to find out how the Picture Box works (e.g. on some report which is using logo from CompanyInfo), try to learn some NAV basics (e.g. application designer guide).
And take it easy, sometime it is hard for me to describe something obvious for me to someone other, just keep learning and trying...
8)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.