ITEM Picture Name

bekiobekio Member Posts: 204
Hello every one!

How can i get picture name and extension of picture imported on Item Card.

Answers

  • ShedmanShedman Member Posts: 194
    The .BMP file is imported as a BLOB into the database. So it doesn't have a filename. You can only import .BMP-files in the database, so that solves one of your problems.

    What do you want to do with it?
  • bekiobekio Member Posts: 204
    I want to import picture as .jpg format and just to import in one table that stores more picture for this item, this picture i don't want to be displayed in navision i just want to store and if i want to see it i have to export to save in some folder but with the same name as i have imported and with extension.jpg.
    Pircture.IMPORT(parameter one, parameter two) - from where is this function Import called, from where dialoga window is called, does this existi in some codeunit or where.
  • bekiobekio Member Posts: 204
    I have found it how to get the path and file name.
    It is like this:


    ImportName:=Picture.IMPORT('*.*',TRUE);
    MESSAGE('%1',ImportName); //= '' THEN;

    And you can store picture name in that record in another field.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Take a look at this Add-On

    http://www.matriks.com/index.html?page=matriksDoc3.html

    or this one depending on what you need

    http://www.matriks.com/index.html?page=matriksdoc4.html

    the best Add-On ever written for Navision. I recommend it to almost every customer.
    David Singleton
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.