Use selected range of buffer not total object length when exporting
Use selected range of buffer not total object length when exporting

* Same fix as #2703 but with a fix not to be limited by the pagination size

Zorro666/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,Zorro666/renderdoc