Exporting pictures using dataports

hari
hari Member Posts: 13
edited 2003-10-14 in Navision Financials
Hi all,

We are in the process of creating a new company.In connection to this process,we have to export pictures using dataports.Can anyone please tell me how to do this :cry:

Thanks in advance.

Best Regards,
Hari.

Comments

  • astaroth
    astaroth Member Posts: 7
    You can't include BLOB fields in Dataports.

    You could do something like the following code.
    CALCFIELDS(Picture);
    CompanyInformation.Picture.EXPORT(CurrDataport.FILENAME+CompanyInformation.Name+'.bmp');
    

    /Astaroth
  • hari
    hari Member Posts: 13
    Hi astaroth,

    Thanks for your prompt reply.I will implement the code and get back to you with the result.


    Best Regards,
    Hari.
  • hari
    hari Member Posts: 13
    Hi astaroth,

    Thats works fine but is there any way to export all pictures in a single shot.


    Thanks in advance.

    Best Regards,
    Hari.
  • eromein
    eromein Member Posts: 589
    nope.

    You have to "calculate" the picture before you can export it. There is no "calcallfields" command, so you have to loop you record with pictures.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."