The idea was here when I save the content of the page, AMS would copy the content of the .html file and
theoretically it does it, but is lets the head content without being copied.
Here is the code that I use to save the document:
Code:
result = MySQL.Query("INSERT IGNORE INTO pacientet_kartelat VALUES(NULL, '" .. IExplorer.GetDocumentBody("Plugin1") .. "');"); if result == -1 then Dialog.Message("Gabim!", MySQL.GetError(), MB_OK, MB_ICONSTOP, MB_DEFBUTTON1); else Dialog.Message("Informacion", "Kartela u shtua me sukses në databazë!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end
Code:
resultset = MySQL.QueryToTable("SELECT pacientet_kartelat.shenime, pacientet_kartelat.kartela FROM pacientet_kartelat WHERE pacientet_kartelat.id = " .. kartela_id_buffer .. " LIMIT 0, 1;", false); if resultset then for i, row in pairs (resultset) do Input.SetText("shenime", row[1]); TextFile.WriteFromString(_SourceFolder .. "\\kartelat\\temp.html", row[2], false); IExplorer.Navigate("Plugin1", _SourceFolder .. "\\kartelat\\temp.html"); end end

I have also thought to use pdf templates.
Could this be done?! Can I get the content of document + the content of the filled forms on pdf object?!
Leave a comment: