<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/report/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/report/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 15 Mar 2021 01:38:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/report/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>TTF fonts in Reports.Net</title><link>https://sourceforge.net/p/report/discussion/196392/thread/d2be003b/?limit=25#ce73</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hey, I'm trying to integrate the same font in my web page of coaching and training &lt;a class="" href="https://thecoachtrainingacademy.com/emotional-intelligence-certification/" rel="nofollow"&gt;website&lt;/a&gt;. Can you help to run the font program?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">as asr</dc:creator><pubDate>Mon, 15 Mar 2021 01:38:24 -0000</pubDate><guid>https://sourceforge.net8edf934a0f9e3dadbf13bd9a6901e821e03ba3ae</guid></item><item><title>Image issues: "There was an error while reading a stream."</title><link>https://sourceforge.net/p/report/discussion/196392/thread/810965ee/?limit=25#aeff</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Luke&lt;/p&gt;
&lt;p&gt;Maybe the JPG-format is not supported. You can tast this: You can load the picture in mspaint, change anything and save it. If this works, the format must be converted in your program.&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Otto&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Otto Mayer</dc:creator><pubDate>Wed, 25 Oct 2017 10:03:09 -0000</pubDate><guid>https://sourceforge.net2a37b3bf2e70d3c4ff5359473495fe88a8521699</guid></item><item><title>Image issues: "There was an error while reading a stream."</title><link>https://sourceforge.net/p/report/discussion/196392/thread/810965ee/?limit=25#3e36</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm making a simple report which includes a few lines of text and an image. Generating text works fine, but when I try to add an image I always get the error in the subject line. My current code to add an image to a .pdf is this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Report&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Report&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;PdfFormatter&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
            &lt;span class="n"&gt;FontDef&lt;/span&gt; &lt;span class="n"&gt;fd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;FontDef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Helvetica"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;FontProp&lt;/span&gt; &lt;span class="n"&gt;fp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;FontPropMM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;Page&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddMM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;RepImageMM&lt;/span&gt;
                      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;@"C:\Users\public\pictures\sample pictures\Carconvert.jpg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Double&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddCB_MM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;RepString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Hello World!"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="n"&gt;RT&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ViewPDF&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"HelloWorld.pdf"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The .pdf will successfully generate, just without a picture. I have done some experimenting to see if ANY image will get through, and I've seen that the Windows Sample Pictures(from Pictures/Sample Pictures folder) will in fact work(which is why my above code goes to the Sample Pictures folder, to deduce whether the containing folder is the problem somehow.) running the above code for Desert.Jpg instead of CarConvert.jpg works perfectly fine.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luke J Reynolds</dc:creator><pubDate>Tue, 24 Oct 2017 18:05:07 -0000</pubDate><guid>https://sourceforge.net91f5509cafff986a143a8e9be38a889c126816e9</guid></item></channel></rss>