Hi Nigel,
thank you for the hint. The ExtendedPrefix (\\?\) removes the MAX_PATH restriction. The following code works fine to me:
ImageEnView.PdfViewer.LoadFromFile(VerifyPath(Path));
function TfMain.VerifyPath(Path: String): String;
begin
if NOT Path.StartsWith('\\') AND (Length(Path) > 255) then
Result := '\\?\' + Path;
end;
Ale