Me.UltraGridDocumentExporter1.FileBuffer = Application.StartupPath + "\Temp.tmp"
When exporting WinGrid™ to a PDF or XML Paper Specification (XPS) document, WinGridDocumentExporter™ stores images in a file buffer rather than in main memory. This alternate method of storage is useful if your system has limited RAM or requires the full use of its RAM on a regular basis. The file buffer is created in the system’s Temp folder; however, it is possible your application may not have access to this folder. If you are unsure of the security rights your application may have, you can use the FileBuffer property to specify a file name and path for the file buffer. This allows you to place the file buffer in a folder that you’re sure your application has access to. Additionally, you can disable the file buffer altogether by setting the UseFileBuffer property to False.
Use the following code to set the path of the file buffer to the application’s startup path:
In Visual Basic:
Me.UltraGridDocumentExporter1.FileBuffer = Application.StartupPath + "\Temp.tmp"
In C#:
this.ultraGridDocumentExporter1.FileBuffer = Application.StartupPath + "\\Temp.tmp";