<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Appnitro Software Forums Topic: export file extensions not formatted properly?</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: export file extensions not formatted properly?</description>
<language>en</language>
<pubDate>Wed, 10 Mar 2010 21:12:41 +0000</pubDate>

<item>
<title>AlanW on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6389</link>
<pubDate>Fri, 26 Jun 2009 21:28:07 +0000</pubDate>
<dc:creator>AlanW</dc:creator>
<guid isPermaLink="false">6389@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Works great but had to change&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$clean_form_name == &#38;#39;no-name&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$clean_form_name = &#38;#39;no-name&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6381</link>
<pubDate>Fri, 26 Jun 2009 10:20:29 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6381@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;yes .. you can apply to CSV also, in &#34;export_entries.php&#34; go to around line 170, you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$clean_form_name = ereg_replace(&#38;quot;[^a-zA-Z0-9_-]&#38;quot;, &#38;quot;&#38;quot;,$form_name);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then replace with this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$clean_form_name = ereg_replace(&#38;quot;[^a-zA-Z0-9_-]&#38;quot;, &#38;quot;&#38;quot;,$form_name);

if (trim($clean_form_name) == &#38;#39;&#38;#39;) {
	$clean_form_name == &#38;#39;no-name&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>AlanW on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6378</link>
<pubDate>Fri, 26 Jun 2009 00:44:38 +0000</pubDate>
<dc:creator>AlanW</dc:creator>
<guid isPermaLink="false">6378@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;That is fantastic redityo. Is there a way to do this for csv as well?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6376</link>
<pubDate>Fri, 26 Jun 2009 00:33:47 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6376@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;It seems you've blank form name/title, to give default file name when you've blank form name.&#60;br /&#62;
Try to edit your &#34;export_entries.php&#34; file and go to around line 145 ~ 147, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// sending HTTP headers
$clean_form_name = ereg_replace(&#38;quot;[^a-zA-Z0-9_-]&#38;quot;, &#38;quot;&#38;quot;,$form_name);
$workbook-&#38;gt;send(&#38;quot;{$clean_form_name}.xls&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;try to change with these &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// sending HTTP headers
$clean_form_name = ereg_replace(&#38;quot;[^a-zA-Z0-9_-]&#38;quot;, &#38;quot;&#38;quot;,$form_name);
if (trim($clean_form_name) == &#38;#39;&#38;#39;) {
	$clean_form_name = &#38;#39;no-name&#38;#39;;
}
$workbook-&#38;gt;send(&#38;quot;{$clean_form_name}.xls&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Those code will give &#34;no-name.xls&#34; when you export entries on blank form name, otherwise you can simply set a form name.
&#60;/p&#62;</description>
</item>
<item>
<title>AlanW on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6374</link>
<pubDate>Fri, 26 Jun 2009 00:09:07 +0000</pubDate>
<dc:creator>AlanW</dc:creator>
<guid isPermaLink="false">6374@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;No actually it is happening in IE7 also, but it is being exported as &#34;.csv[1]&#34; or &#34;.xls[1]&#34;. If I take off the &#34;[1]&#34; and add a prefix to the file, such as &#34;test.csv&#34; then it opens fine.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6362</link>
<pubDate>Thu, 25 Jun 2009 15:51:42 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6362@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Hmm .. I use Firefox 3 and it's work fine in here. Anyway what is your form name and is it only happened in firefox 3 ?
&#60;/p&#62;</description>
</item>
<item>
<title>AlanW on "export file extensions not formatted properly?"</title>
<link>http://www.appnitro.com/forums/topic/export-file-extensions-not-formatted-properly#post-6351</link>
<pubDate>Wed, 24 Jun 2009 21:58:18 +0000</pubDate>
<dc:creator>AlanW</dc:creator>
<guid isPermaLink="false">6351@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;When I export either csv or xls files in Firefox v3, the resulting files are named simply &#34;csv&#34; or &#34;xls&#34;, rather than &#34;[filename].csv&#34; or &#34;[filename].xls&#34;. If I add the &#34;.&#34; to the filename the files will autoformat when opening in excel, otherwise I have to format manually. A small inconvenience but seems like this could easily be fixed? Love this product!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
