<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Reporting</title><link>https://www.dotnetzone.gr:443/cs/forums/18/ShowForum.aspx</link><description>Θέματα για Crystal Reports, Active Reports, SQL Server Reporting Services και άλλα εργαλεία</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12070.aspx</link><pubDate>Mon, 24 Apr 2006 04:08:44 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12070</guid><dc:creator>gmeles</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12070.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12070</wfw:commentRss><description>Καλό πάσχα και καλή ξεκούραση (σε όλους)</description></item><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12066.aspx</link><pubDate>Sat, 22 Apr 2006 08:30:27 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12066</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12066.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12066</wfw:commentRss><description>Θα σου γράψω ένα παράδειγμα μόλις βρω γυρίσω την Δευτέρα πίσω..Τώρα βρίσκομαι εκτός και δεν εχω και πολύ χρόνο..Να ξεκουραστούμε και λίγο βρε αδελφέ.. &lt;img src="/cs/emoticons/emotion-1.gif" alt="Smile [:)]" /&gt;</description></item><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12051.aspx</link><pubDate>Fri, 21 Apr 2006 07:00:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12051</guid><dc:creator>gmeles</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12051.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12051</wfw:commentRss><description>Επίσης, τι εννοείς με regular expression?</description></item><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12050.aspx</link><pubDate>Fri, 21 Apr 2006 06:59:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12050</guid><dc:creator>gmeles</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12050.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12050</wfw:commentRss><description>Το έκανα και με split και για κάθε spit άνω τον 20 χαρακτήρων να αλλάζει γραμμή αλλά και πάλι δεν έχω καταλάβει πως να το κάνω να μην αλλάζει από εκεί και πέρα σε κάθε κενό αλλά μόνο πριν τους 40 χαρακτήρες. (Για την ακρίβεια το έκανα βάζοντας ένα πάνω όριο αλλά αν η πρώτη γραμμή έχει για παράδειγμα 30 χαρακτήρες, η 2η θα έχει &gt;10 και η 3η άλλους πχ 20. Οπότε καταλαβαίνεις ότι αυτό δεν είναι ιδιαίτερα όμορφο αισθητικά</description></item><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12038.aspx</link><pubDate>Thu, 20 Apr 2006 20:17:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12038</guid><dc:creator>gmeles</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12038.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12038</wfw:commentRss><description>μπορείς να δώσεις sample? θα ήμουν υπόχρεος.</description></item><item><title>Απ: PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12037.aspx</link><pubDate>Thu, 20 Apr 2006 19:56:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12037</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12037.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12037</wfw:commentRss><description>Εγώ πάντως δεν θα έμπλεκα με manual parsing σε όλο το string..&lt;br&gt;
Θα έφτιαχνα ένα array απο το string με delimeter το κενό.&lt;br&gt;
Στην συνέχεια μια loop η οποία θα περνούσε ενα ενα τα rows του array κρατώντας&lt;br&gt;
το length του.. Εάν το length ξεπερνάει τους 20 char ή υπάρχει τελεία
στο τέλος του, τότε να αλλάζει γραμμή..Για πολύ μεγάλα strings ίσως
είναι λίγο memory eater, οπότε καλό θα ήτανε να σπάς το string πρωτού
το δώσεις για parse..&lt;br&gt;
Ένας άλλος τρόπος είναι και με regular expression..&lt;br&gt;
&lt;br&gt;</description></item><item><title>PrintDocument και</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12034.aspx</link><pubDate>Thu, 20 Apr 2006 18:16:34 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12034</guid><dc:creator>gmeles</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12034.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=18&amp;PostID=12034</wfw:commentRss><description>Καλημέρα ουσιαστικά αυτό που έχω κολλήσει είναι:&lt;br /&gt;έχω μια περιγραφή προϊόντος. &lt;br /&gt;Οι χαρακτήρες και ο αριθμός αυτών είναι σε τυχαία θέση και με τυχαίο πλήθος και θέλω στην εκτύπωση να βγαίνουν στην πρώτη σειρα max οι 20 πρώτοι χαρακτήρες του string στην δεύτερη οι άλλοι 20 κοκ με την διαφορά ότι μια λέξη δεν μπορεί να κόβεται στην μέση αλλά πρέπει πρέπει η αλλαγή της γραμμής να γίνεται είτε στο κενό είτε στην τελεία. Έχω κάνει την παρακάτω μπακάλικη function αλλά από την δεύτερη γραμμή και μετά μου αλλάζει γραμμή σε κάθε κενό. Καμιά ιδέα&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function splitItemDescription(ByVal st As String, ByVal intLength As Integer) As String&lt;br /&gt;        Dim o, i As Integer&lt;br /&gt;        Dim k, m As String&lt;br /&gt;        Dim newLine As Boolean&lt;br /&gt;        Dim Cpos As Integer&lt;br /&gt;&lt;br /&gt;        k = ""&lt;br /&gt;        m = ""&lt;br /&gt;        newLine = False&lt;br /&gt;&lt;br /&gt;        ' Remove double spaces from string&lt;br /&gt;&lt;br /&gt;        st = Trim(st)&lt;br /&gt;        Cpos = InStr(1, st, " ")&lt;br /&gt;&lt;br /&gt;        While Cpos &amp;lt;&amp;gt; 0&lt;br /&gt;            m += Strings.Left(st, Cpos)&lt;br /&gt;            st = Trim(Strings.Mid(st, Cpos + 1))&lt;br /&gt;            Cpos = InStr(1, st, " ")&lt;br /&gt;            'MessageBox.Show(Cpos, "Cpos")&lt;br /&gt;        End While&lt;br /&gt;&lt;br /&gt;        m += st&lt;br /&gt;        st = m&lt;br /&gt;&lt;br /&gt;        Dim maxchars As Integer = 20&lt;br /&gt;        Dim sympos1, sympos2 As Integer&lt;br /&gt;        Dim firstsym As Boolean&lt;br /&gt;&lt;br /&gt;        firstsym = True&lt;br /&gt;        sympos1 = 0&lt;br /&gt;        sympos2 = 0&lt;br /&gt;        o = 1&lt;br /&gt;        For i = 0 To st.Length - 1&lt;br /&gt;            m = st.Chars(i)&lt;br /&gt;            k += m&lt;br /&gt;            If (Char.IsSymbol(m) Or m = " ") And k.Length &amp;gt; intLength * o Then&lt;br /&gt;                'st = SplitString(st, i)&lt;br /&gt;                o += 1&lt;br /&gt;                k += Chr(10) + Chr(13)&lt;br /&gt;            End If&lt;br /&gt;        Next&lt;br /&gt;        splitItemDescription = k&lt;br /&gt;    End Function</description></item></channel></rss>