Jump to content

CarloM

Members
  • Content Count

    53
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by CarloM


  1. Hello,

     

    Last years I used Mapi for compose email and send it via outlook.

    I found this code that works well on my PC.

     

    Anybody can say me what is the best method for compose and send on outlook actually ?

    const
      olMailItem = 0;
    var
      Outlook, MailItem: OLEVariant;
    begin
      try
        Outlook := GetActiveOleObject('Outlook.Application');
      except
        Outlook := CreateOleObject('Outlook.Application');
      end;
    
      MailItem := Outlook.CreateItem(olMailItem);
      MailItem.Recipients.Add('test@gmail.com');
      MailItem.Subject := 'your subject';
      
      MailItem.htmlBody := Memo1.Lines.Text;
      MailItem.Display;
    
      Outlook := Unassigned;

     


  2. 18 minutes ago, Der schöne Günther said:

    I honestly don't think the deployment manager is the right tool for this. It's intended to bundle the sqlite template with your app, but not initialize "first run" scenarios.

     

    The user files belong in %AppData% and Windows takes care of virtualizing this per user. So all you have to do is, at runtime, take your local .sqlite file and copy it to %Appdata%\... if it's not already there.

    But, copy manually files on first run ? 

     


  3. Hi,

     

    I am trying to generate an appx with Delphi Sydney, but I dont know where deploy database file, reports files,... for read/write.

     

    When I compile for Mac use this remote path "Contents\Resources\StartUp\" for DB files, reports,.... 

     

    But on Windows I don´t know if exists especial folders.

     

    Thank you so much

×