Zeilennummerierung hochzählen für nicht Stücklistenkomponenten
Michael Hubenschmid
Hallo Zusammen!Wie kann ich das Drucken der Zeilennummerierung über das Feld VisOrder so anpassen das es mir diese nur hochzählt bei Artikeln die keine Stücklistenkomponenten sind!
Danke für die Tips!
Michael Hubenschmid
Philipp Knecht
Hallo MichaelHierzu musst du im Commonscript des Documents eine Variable ala:
Dim PosNr As Integer
deklarieren.
Dann im Generatescript des Documents:
PosNr = 0
Und im Generatescript des Details:
If DocumentRow("TreeType") <> "I" Then
PosNr = PosNr + 1
End If
Dann im entsprechenden Feld das Value Property mit :
PosNr
binden
hth
Adrian Lenherr
Hallo PhilippBezüglich der Nummerierung, hattet ihr schon mal Probleme, dass bei der Technik die du beschreibst eine Zahl übersprungen wird.
Wir hatte dies schon öfters und zwar, wenn die letzte Position einer Seite eigentlich keinen Platz mehr hat und auf die nächste sollte und dies erst beim DoublePass merk. Dann überspringt er zum Teil eine Nummer.
Wir haben dafür nun eine ganz komfortable Lösung gefunden, die sogar noch mehr kann und automatisch funktioniert und dem Benutzer erlaubt manuelle eingriffe zu tätigen.
Aber trotzdem währe es interessant zu wissen warum!
Gruss Adi
Philipp Knecht
Hi AdrianHabe mal einen kleinen testcase gemacht hier (In Datei speichern und mit Designer öffnen):
[quote]<?xml version="1.0" encoding="utf-8" standalone="yes"?><root type="PerpetuumSoft.Reporting.DOM.Document" id="1" version="2" Name="doc1" GridStep="59.055118560791016" IsTemplate="true" CommonScript="Dim posNr As Integer" DoublePass="true"><StyleSheet type="PerpetuumSoft.Reporting.DOM.StyleSheet" id="2"><Styles type="PerpetuumSoft.Reporting.DOM.StyleCollection" id="3" /></StyleSheet><Parameters type="PerpetuumSoft.Reporting.DOM.ParameterCollection" id="4" /><Pages type="PerpetuumSoft.Reporting.DOM.PageCollection" id="5"><Item type="PerpetuumSoft.Reporting.DOM.Page" id="6" Location="0;0" Margins="118.110237121582; 141.732284545898; 177.16535949707; 118.110237121582" Name="page1" Size="2480.3149606299212;3507.8740157480315"><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="7"><Item type="swissLD.Reporting.AdvancedDataBand" id="8" ColumnsGap="0" InstanceCount="20" GenerateScript="posNr = posNr + 1" Location="0;177.16535568237305" Name="advancedDataBand1" Size="2480.3149606299212;413.38582992553711"><Sort type="PerpetuumSoft.Reporting.DOM.DataBandSortCollection" id="9" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="10" /><Totals type="PerpetuumSoft.Reporting.DOM.DataBandTotalCollection" id="11" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="12"><Item type="PerpetuumSoft.Reporting.DOM.Detail" id="13" CanShrink="true" CanBreak="true" CanGrow="true" Location="0;118.11023712158203" Name="detail1" Size="2480.3149606299212;118.11023712158203"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="14" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="15"><Item type="PerpetuumSoft.Reporting.DOM.AdvancedText" id="16" CanShrink="true" Location="295.27559280395508;0" CanBreak="true" Text="1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9<br/>0<br/>" CanGrow="true" Name="advancedText1" Size="767.7165412902832;59.055118560791016"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="17" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="18" Location="1417.3228454589844;0" Text="text" Name="textBox1" Size="590.55118560791016;59.055118560791016"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="19"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="20" Expression="posNr" PropertyName="Value" /></DataBindings></Item></Controls><Aggregates type="PerpetuumSoft.Reporting.DOM.AggregateCollection" id="21" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Detail" id="22" Location="0;295.27559280395508" Name="detail2" Size="2480.3149606299212;59.055118560791016"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="23" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="24" /><Aggregates type="PerpetuumSoft.Reporting.DOM.AggregateCollection" id="25" /></Item></Controls><Aggregates type="PerpetuumSoft.Reporting.DOM.AggregateCollection" id="26" /></Item></Controls><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="27" /></Item></Pages></root>
Hier funktionierts.
Gruss
Philipp
0
Please sign in to leave a comment.
Comments
0 comments