<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcAttachment.TempFilePath</id>
	<title>PdcAttachment.TempFilePath - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcAttachment.TempFilePath"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcAttachment.TempFilePath&amp;action=history"/>
	<updated>2026-05-06T17:18:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcAttachment.TempFilePath&amp;diff=35356&amp;oldid=prev</id>
		<title>TC: Created page with &quot;== Declaration == TempFilePath as String  == Description == If the attachment has already been downloaded to a temp file, for example while loading the attachment from Bemet, the path to this location is stored in this property. This property can also filled with the location of a file, and then the file at this location will be used in the save.   == Notes ==  == Code example == Adding a local file to Bemet&lt;br&gt; &lt;source lang=&quot;vb.Net&quot;&gt; Dim calcAttachList As PDCEXT.IPdcAtt...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcAttachment.TempFilePath&amp;diff=35356&amp;oldid=prev"/>
		<updated>2024-01-05T12:02:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == TempFilePath as String  == Description == If the attachment has already been downloaded to a temp file, for example while loading the attachment from Bemet, the path to this location is stored in this property. This property can also filled with the location of a file, and then the file at this location will be used in the save.   == Notes ==  == Code example == Adding a local file to Bemet&amp;lt;br&amp;gt; &amp;lt;source lang=&amp;quot;vb.Net&amp;quot;&amp;gt; Dim calcAttachList As PDCEXT.IPdcAtt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
TempFilePath as String&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
If the attachment has already been downloaded to a temp file, for example while loading the attachment from Bemet, the path to this location is stored in this property. This property can also filled with the location of a file, and then the file at this location will be used in the save. &lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
Adding a local file to Bemet&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb.Net&amp;quot;&amp;gt;&lt;br /&gt;
Dim calcAttachList As PDCEXT.IPdcAttachmentList = PDC.App.AttachmentList&lt;br /&gt;
calcAttachList.ReadFromTableName(&amp;quot;DO_CALC&amp;quot;, tbCalcNr.Text)&lt;br /&gt;
&lt;br /&gt;
Dim newAttach As PDCEXT.IPdcAttachment = calcAttachList.Add()&lt;br /&gt;
newAttach.FileName = &amp;quot;NewFile.pdf&amp;quot;&lt;br /&gt;
newAttach.TempFilePath = &amp;quot;C:\AFolder\NewFile.pdf&amp;quot;&lt;br /&gt;
newAttach.Save(&amp;quot;&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Copying all attachments of a calculation to a sales invoice&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb.Net&amp;quot;&amp;gt;&lt;br /&gt;
Dim calcAttachList As PDCEXT.IPdcAttachmentList = PDC.App.AttachmentList&lt;br /&gt;
calcAttachList.ReadFromTableName(&amp;quot;DO_CALC&amp;quot;, tbCalcNr.Text)&lt;br /&gt;
&lt;br /&gt;
Dim invAttachList As PDCEXT.IPdcAttachmentList = PDC.App.AttachmentList&lt;br /&gt;
invAttachList.ReadFromTableName(&amp;quot;FACTUUR&amp;quot;, tbInvNr.Text)&lt;br /&gt;
&lt;br /&gt;
For attachIndex As Integer = 0 To calcAttachList.Count - 1&lt;br /&gt;
    Dim attachment = calcAttachList.Items(attachIndex)&lt;br /&gt;
&lt;br /&gt;
    Dim copyAttachment As PDCEXT.IPdcAttachment = invAttachList.Add&lt;br /&gt;
    copyAttachment.FileName = attachment.FileName&lt;br /&gt;
    copyAttachment.TempFilePath = attachment.TempFilePath&lt;br /&gt;
    copyAttachment.Save(&amp;quot;&amp;quot;)&lt;br /&gt;
Next&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Bemet 2024R1&lt;/div&gt;</summary>
		<author><name>TC</name></author>
	</entry>
</feed>