打印报Length 不能小于0

by zhengyj 2013.8.16 15:13

注:脚本执行有风险,对于客户正式环境请在研发指导下执行。

这种错误主要在完全自定义的UIModel打印模板里出现,其他形式的打印模板很少出现。

错误的原因是:在完全自定义UIModel打印模板,在定义打印UIModel字段时,出现如下形式的字段:采购订单_单号。

实际正确的字段形式为:采购订单___单号(3个_)

异常出现的代码文件和部分代码为:

\\vm97\CCViews2.5_Dev\UBFCode_INV\U9.VOB.UBF.V2.5\ADF\Analysis\Print\UFSoft.UBF.ExportService\UFSoft.UBF.ExportService\Service\ExportServiceFactory.cs

 private DataSet LoadUIModelData(UFSoft.UBF.Report.Entity.Report report, UFSoft.UBF.UI.ActionProcess.BaseAction action, Dictionary<string, List<long>> UIviewsIDs, IUIModel currentUIModel)
        {
            Dictionary<string, List<string>> viewFields = new Dictionary<string, List<string>>();
            List<string> viewNames = new List<string>();
            List<string> relationViews = new List<string>();
            DataQuery query1 = report.ReportataQuerys[0];

            string queryName = query1.Name;
            if (string.IsNullOrEmpty(queryName))
            {
                queryName = "table1";
            }

            DataTable dataTable = new DataTable(queryName);

            foreach (FieldItem field1 in query1.Fields)
            {
                if (field1.UserDefineField)
                {
                    continue;
                }

                int index = field1.Name.LastIndexOf("___");    //此异常抛出的地方
                string viewName = field1.Name.Substring(0, index);

............

解决方案:重新定义字段,形式中必须带___

Tags:

评论 (69) -

moncler outlet 美国 wrote at 2015/9/13 6:15:01 #

Hey there! I know this is somewhat off topic but I was wondering which blog platform are you using for this site? I'm getting sick and tired of Wordpress because I've had issues with hackers and I'm looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.

pan card enquiry 美国 wrote at 2016/6/22 5:47:25 #

Hi there would you mind stating which blog platform you're working with? I'm planning to start my own blog soon but I'm having a difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I'm looking for something completely unique.                  P.S My apologies for getting off-topic but I had to ask!

https://www.diigo.com 美国 wrote at 2016/6/26 6:34:10 #

Offrir une utilisation facile à, de haute qualité conflict of clan hack est notre mission.

clash of clans hack 美国 wrote at 2016/7/1 2:50:58 #

I am really loving the theme/design of your website. Do you ever run into any internet browser compatibility problems? A couple of my blog visitors have complained about my blog not working correctly in Explorer but looks great in Chrome. Do you have any suggestions to help fix this issue?

nike factory outlet 美国 wrote at 2016/7/21 3:22:51 #

Heya i'm for the first time here. I came across this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you aided me.

krisis Air bersih 美国 wrote at 2016/8/11 21:18:50 #

I was suggested this web site by means of my cousin. I am no longer sure whether or not this post is written through him as nobody else realize such distinctive approximately my problem. You're wonderful! Thanks!  my site ...  krisis Air bersih - ljxx.gznsjy.net/.../index.php?page=1&id=14954

krisis Air bersih 美国 wrote at 2016/8/11 21:19:21 #

I was suggested this web site by means of my cousin. I am no longer sure whether or not this post is written through him as nobody else realize such distinctive approximately my problem. You're wonderful! Thanks!  my site ...  krisis Air bersih - ljxx.gznsjy.net/.../index.php?page=1&id=14954

Jual Baju bayi online 美国 wrote at 2016/8/12 4:08:12 #

Thank you a bunch for sharing this with all people you really understand what you are speaking approximately! Bookmarked. Please also seek advice from my web site =). We may have a link change contract between us

Toko Beraneka Ragam Stroller Baby Elle Harga Murah di Indonesia 美国 wrote at 2016/8/12 5:04:12 #

Greetings from Carolina! I'm bored at work so I decided to browse your website on my iphone during lunch break. I enjoy the info you provide here and can't wait to take a look when I get home. I'm amazed at how quick your blog loaded on my phone .. I'm not even using WIFI, just 3G .. Anyhow, superb site!

PT. GEO BAYASHI 美国 wrote at 2016/8/12 7:12:05 #

An intriguing discussion is worth comment. I think that you should publish more about this issue, it may not be a taboo subject but usually people don't speak about such subjects. To the next! Many thanks!!  Have a look at my site;  PT. GEO BAYASHI - http://geobayashi.com/lingkup-usaha-visi-dan-misi/

www.gzkuaiji.net 美国 wrote at 2016/8/14 18:34:23 #

Thank you for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your next write ups thank you once again.  Stop by my web site - lantai kayu ( www.gzkuaiji.net - www.gzkuaiji.net/.../index.php )

Studi Geologi 美国 wrote at 2016/8/25 19:24:12 #

Hey would you mind stating which blog platform you're working with? I'm planning to start my own blog in the near future but I'm having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I'm looking for something unique.                  P.S My apologies for getting off-topic but I had to ask!  Look into my page ::  biaya kontraktor pembuatan sumur dalam terjangkau di Lamongan - incredit.me/

desain rumah modern setingkat 美国 wrote at 2016/8/26 6:33:16 #

I love it whenever people get together and share views. Great website, continue the good work!  my page:  desain rumah modern setingkat - www.fastwebindo.co.id/.../...muran-rekor-5195.html

www.desainrumahmoderen.com 美国 wrote at 2016/8/26 6:34:33 #

It's awesome in support of me to have a web page, which is helpful for my knowledge. thanks admin  my weblog  www.desainrumahmoderen.com - dhavi.blog.blog.w.isaev.infow.isaev.info

www.moderndesain.com 美国 wrote at 2016/8/27 6:37:08 #

Aw, this was a very good post. Taking the time and actual effort to generate a superb article… but what can I say… I put things off a whole lot and don't seem to get nearly anything done.  my homepage -  www.moderndesain.com - http://www.moderndesain.com

wisatatourbromo.com 美国 wrote at 2016/8/28 17:04:32 #

. . . . .  my web site ...  wisatatourbromo.com - http://wisatatourbromo.com

www.desainrumahmoderen.com 美国 wrote at 2016/9/1 8:50:30 #

Very nice post. I absolutely love this website. Stick with it!  Here is my site;  www.desainrumahmoderen.com - labs.spottydog06.farm4.static.uw.isaev.info/

desainrumahmoderen.com 美国 wrote at 2016/9/2 3:03:38 #

Hey there! Do you use Twitter? I'd like to follow you if that would be okay. I'm definitely enjoying your blog and look forward to new updates.  Here is my weblog ::  desainrumahmoderen.com - http://uiupdate.ui.ac.id/node/5533/track

peluang usaha 美国 wrote at 2016/9/29 15:43:48 #

Definitely consider that which you said. Your favorite reason seemed to be on the net the easiest factor to have in mind of. I say to you, I definitely get annoyed at the same time as folks think about concerns that they just don't understand about. You controlled to hit the nail upon the top and also outlined out the entire thing with no need side-effects , people can take a signal. Will probably be again to get more. Thanks  Review my homepage ::  peluang usaha - http://grosiranbandung.com

desainrumahmoderen.com 美国 wrote at 2016/10/14 22:10:07 #

Very soon this website will be famous amid all blogging viewers, due to it's good content  My webpage -  desainrumahmoderen.com - http://uiupdate.ui.ac.id/node/15369/track

www.desainrumahmoderen.com 美国 wrote at 2016/10/15 18:35:47 #

Definitely consider that which you said. Your favourite justification appeared to be at the internet the simplest thing to have in mind of. I say to you, I certainly get annoyed whilst folks consider issues that they plainly do not realize about. You controlled to hit the nail upon the top and defined out the entire thing with no need side-effects , folks could take a signal. Will likely be back to get more. Thank you  Feel free to surf to my webpage;  www.desainrumahmoderen.com - http://128.199.252.189/node/74/track

desainrumahmoderen.com 美国 wrote at 2016/10/16 4:57:45 #

Hey very nice blog!  Visit my webpage;  desainrumahmoderen.com - one.blog.ww.isaev.infoww.isaev.info/

peluang usaha untuk mahasiswa 美国 wrote at 2016/10/16 11:02:03 #

It's a pity you don't have a donate button! I'd definitely donate to this excellent blog! I suppose for now i'll settle for bookmarking and adding your RSS feed to my Google account. I look forward to brand new updates and will talk about this site with my Facebook group. Talk soon!  Here is my blog ::  peluang usaha untuk mahasiswa - http://muamalah.net

desainrumahmoderen.com 美国 wrote at 2016/10/23 17:42:29 #

Everyone loves it whenever people come together and share opinions. Great blog, stick with it!  Look at my page ...  desainrumahmoderen.com - http://194.145.96.12/~bm23494/photo/gastebuch.php

desainrumahmoderen.com 美国 wrote at 2016/10/26 11:40:34 #

I have to thank you for the efforts you have put in writing this site. I really hope to check out the same high-grade content from you later on as well. In fact, your creative writing abilities has motivated me to get my own website now ;)  My site -  desainrumahmoderen.com - avanguard.com.tw/.../info.php

wisata Tour Bromo 美国 wrote at 2016/10/30 3:05:43 #

Seseorang tentu   membantu untuk membuat serius   posting  aku mungkin  negara . Ini adalah  yang  pertama kalinya saya sering dikunjungi halaman web  dan  sejauh ? Saya kagum  dengan  analisis Anda dibuat untuk  membuat ini sebenarnya   mengirimkan   menakjubkan .  sangat baik  Pekerjaan  Here is my web page -  wisata Tour Bromo - dn.hoippo.km.ua/.../Why_Safe_Cosmetics_May_Save_Your_Sensitive_Skin

desainrumahmoderen.com 美国 wrote at 2016/11/11 0:09:24 #

Yes! Finally something about rumah.  Also visit my weblog  desainrumahmoderen.com - http://kaelin.info/schwalbenschwanz/guestbook/

www.desainrumahmoderen.com 美国 wrote at 2016/11/14 15:38:09 #

Hi there! I know this is kinda off topic nevertheless I'd figured I'd ask. Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa? My website discusses a lot of the same subjects as yours and I think we could greatly benefit from each other. If you might be interested feel free to send me an e-mail. I look forward to hearing from you! Great blog by the way!  Here is my homepage:  www.desainrumahmoderen.com - one.oldiestation.es/php.php

desain rumah modern 2 lantai 美国 wrote at 2016/11/15 14:43:06 #

Hi, i feel that i noticed you visited my website thus i came to go back the desire?.I'm attempting to to find issues to improve my site!I assume its ok to make use of some of your concepts!!  Feel free to surf to my website ::  desain rumah modern 2 lantai - secretlife.blog.duwww.admin.isaev.info

desainrumahmoderen.com 美国 wrote at 2017/1/21 3:57:36 #

Wonderful work! This is the type of info that are supposed to be shared across the internet. Disgrace on the seek engines for not positioning this put up higher! Come on over and seek advice from my site . Thanks =)  my webpage;  desainrumahmoderen.com - ns5.francis.cn/phpinfo.php

ebooklivres.com 美国 wrote at 2017/3/13 1:05:28 #

Have you ever thought about including a little bit more than just your articles? I mean, what you say is valuable and all. However just imagine if you added some great graphics or videos to give your posts more, "pop"! Your content is excellent but with pics and clips, this site could undeniably be one of the best in its field. Wonderful blog!  My web-site -  ebooklivres.com - http://ebooklivres.com

www.desainrumahmoderen.com 美国 wrote at 2017/4/13 1:23:58 #

I have read a few just right stuff here. Definitely worth bookmarking for revisiting. I surprise how a lot attempt you set to make this type of excellent informative site.  Feel free to surf to my blog post -  www.desainrumahmoderen.com - www.patoks.ru/...1%82%D0%B7%D1%8B%D0%B2%D1%8B.html

www.desainrumahmoderen.com 美国 wrote at 2017/4/13 4:48:54 #

I do not know if it's just me or if everybody else encountering issues with your blog. It appears as if some of the written text in your posts are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well? This might be a issue with my web browser because I've had this happen previously. Kudos  Here is my webpage ::  www.desainrumahmoderen.com - http://mgb.herters-hun.de/index.php

desain rumah modern 1 lantai 美国 wrote at 2017/4/13 18:52:59 #

I don't even know the way I ended up right here, but I believed this post was great. I don't recognise who you might be but certainly you're going to a famous blogger should you aren't already. Cheers!  My blog ::  desain rumah modern 1 lantai - http://uiupdate.ui.ac.id/node/15137/track

desainrumahmoderen.com 美国 wrote at 2017/4/18 11:16:37 #

I think the admin of this web page is really working hard in support of his web page, since here every data is quality based material.  Also visit my blog  desainrumahmoderen.com - www.szkolatuchorza.pl/index.php

site de telechargement livre epub gratuit 美国 wrote at 2017/5/17 15:50:40 #

Hey just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Firefox. I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd post to let you know. The style and design look great though! Hope you get the issue resolved soon. Many thanks  My blog post ::  site de telechargement livre epub gratuit - http://zonbuzz.com

pdfepub.live 美国 wrote at 2017/5/18 23:30:05 #

For most up-to-date information you have to pay a quick visit the web and on the web I found this site as a finest website for latest updates.  Stop by my web page ::  pdfepub.live - https://pdfepub.live

Hair Model Ideas 美国 wrote at 2018/7/26 17:41:07 #

This information is priceless. How can I find out more?  My site -  Hair Model Ideas - http://Dehairmodel.club/

Jual Sarung Tangan Kiper 美国 wrote at 2018/8/25 14:31:31 #

Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is great, as well as the content!  Also visit my website ::  Jual Sarung Tangan Kiper - jonasmedsport.com/.../

louis vuitton 美国 wrote at 2018/9/2 11:51:39 #

Every weekend i used to pay a visit this web page, as i wish for enjoyment, for the reason that this this web page conations truly good funny information too.

Jual / Toko Furniture / Meubel / Mebel Murah 美国 wrote at 2018/10/4 16:15:04 #

Hello There. I discovered your weblog using msn. This is a really smartly written article. I will make sure to bookmark it and come back to learn extra of your useful info. Thank you for the post. I will certainly comeback.  my webpage;  Jual / Toko Furniture / Meubel / Mebel Murah - creovafurniture.com/karpet-murah-di-nilai-3-2015/

SPSS & Analisis / Analisa Statistik Bandung 美国 wrote at 2018/10/23 15:41:31 #

Thanks , I've just been searching for info about this topic for a long time and yours is the best I've found out so far. However, what in regards to the bottom line? Are you sure concerning the supply?  Here is my web site ...  SPSS & Analisis / Analisa Statistik Bandung - bandung-statistika.com/.../

viagra without a doctor prescription 美国 wrote at 2018/10/30 18:13:03 #

Without requiring where to buy Viagra, it is required that you being for a generic online cheap. Discount broker online  generic viagra - vinicop.altervista.org/.../  dodgeball. So, they use every day to light it easier.

viagra generic 美国 wrote at 2018/11/4 12:13:10 #

In the US, the new safety will be their for women with "guaranteed, generalised hypoactive sexual event park HSDD ", which can experience in men who honest were sexually side but whose immune of insurance "is not due to a co-existing martinmas or erectile dysfunction, children within the sufferer, or the effects of a member or other body world". Espn2  viagra generic - http://mothercenter.info/PDS/3512727  lexington mortgage. All three days expected at the Treatment of Time, Quality of Pennsylvania.

prescription without a doctors prescription 美国 wrote at 2018/12/10 5:51:18 #

organic viagra without a doctor prescription - ibbs.uu.cc/forum.php?mod=viewthread&tid=137368

buy viagra online 美国 wrote at 2018/12/15 2:33:19 #

female viagra pills - www.worlfriends.com/.../

generic viagra usa 美国 wrote at 2018/12/19 0:30:27 #

Neat blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your design. Thank you  buy generic viagra online - https://www.itweb.es/index.php?topic=167131.0

generic viagra 美国 wrote at 2018/12/22 16:58:04 #

Why viewers still make use of to read news papers when in this technological world all is presented on net?  buy viagra online - 920mhz.com/.../index.php

Nasim Usada 美国 wrote at 2019/12/30 17:59:02 #

What's up Dear, are you actually visiting this web site on a regular basis, if so then you will absolutely get fastidious knowledge.

doa agar pembeli tertarik dengan kita 美国 wrote at 2019/12/31 18:13:38 #

Magnificent items from you, man. I've take into accout your stuff prior to and you are simply extremely fantastic. I actually like what you've obtained right here, certainly like what you are stating and the way in which in which you assert it. You are making it entertaining and you continue to take care of to stay it smart. I can not wait to learn much more from you. This is really a great site.

jasa pelet jarak jauh 美国 wrote at 2020/1/8 2:13:00 #

Link exchange is nothing else however it is simply placing the other person's weblog link on your page at proper place and other person will also do same in favor of you.

https://works.bepress.com/kangfappin-dukunterpercaya/about 美国 wrote at 2020/1/13 10:38:07 #

I have read so many articles or reviews about the blogger lovers but this post is genuinely a fastidious piece of writing, keep it up.

ini dia alasan mengapa bisnis investasi apartemen lebih menguntungkan 美国 wrote at 2020/1/15 6:54:20 #

https://aus.co.id/ - Elemen penting pada runian yang kecil yaitu menyingkirkan barang - barang yang tak diperlukan, sebab barang - barang yang tak perlu akan beserakan dan memakan daerah dirumah sehingga memunculkan kesan sempit dan acak - acakan di tempat tinggal.

https://aus.co.id/8-tips-membeli-rumah-bekas-untuk-pemula-2019/ 美国 wrote at 2020/1/21 23:08:06 #

http://news.tochka.net/tochkaliked/?url=https://aus.co.id/tips-memilih-papan-gypsum-berkualitas-untuk-rumah/ - Perputaran hidup nyamuk pada tahap pertama dimulai dari telor yang dikeluarkan oleh nyamuk betina. Nyamuk betina cuma kawin satu kali dalam masa hidupnya. Telor yang dihasilkan oleh perkawinan antara nyamuk betina dan jantan akan mereka masukkan ke dalam air. Tanpa air, telur nyamuk jadi rusak dan tak akan menetas. Pada tahap pertama daur hidup nyamuk ini, satu ekor nyamuk betina bisa mengeluarkan 300 telur sekalian. Telur nyamuk tak memerlukan waktu yang lama untuk menetas, cuma memerlukan satu atau dua hari saja. Ukuran telor nyamuk kurang dari satu milimeter sehingga tidak mudah terlihat atau terdeteksi oleh manusia. %meta_keyword

desain rumah minimalis 3 kamar tidur 美国 wrote at 2020/1/23 9:33:39 #

aus.co.id/.../ - Unsur penting di runian yang kecil yaitu menyingkirkan barang - barang yang tak diperlukan, sebab barang - barang yang tak perlu akan beserakan dan memakan daerah ditempat tinggal sehingga memunculkan kesan sempit dan acak - acakan pada rumah.

model rumah 美国 wrote at 2020/2/15 1:48:47 #

I am no longer sure the place you are getting your info, but good topic. I needs to spend some time finding out more or understanding more. Thanks for great information I was on the lookout for this info for my mission.

viagra prices 美国 wrote at 2020/6/25 20:30:18 #

viagra pills lowest prices  viagra online - http://usabuyes.com  best price viagra

generic viagra 美国 wrote at 2020/6/26 3:55:49 #

online pharmacy canada  generic viagra - http://canadian-healthy.com  generic name for viagra

levitra walmart 美国 wrote at 2020/6/26 4:04:36 #

10mg staxyn vs 20mg levitra  order levitra - https://levitrao.com/  can i take levitra after eating

generic cialis online 美国 wrote at 2020/6/26 4:23:58 #

viagra cialis levitra online will cialis keep you hard https://cialisk.com/ - cialis generic what is cialis taken for  cialis - https://cialisk.com/  cheap cialis pills online

vardenafil levitra 美国 wrote at 2020/6/26 5:07:44 #

levitra tabletas de 20 mg  levitra generic name - https://levitrao.com/  levitra vardenafil dosage

buy viagra 美国 wrote at 2020/6/26 11:26:50 #

best male enhancements  viagra - http://silaxera.com  viagra no prescription

how much does levitra cost 美国 wrote at 2020/6/26 15:13:29 #

viagra vs levitra user reviews  cheap levitra 20mg - https://levitrao.com/  levitra odt 10 mg

tempat wisata di bali 美国 wrote at 2020/6/27 20:41:34 #

It's remarkable to pay a quick visit this web site and reading the views of all mates on the topic of this article, while I am also eager of getting knowledge.

levitra online 美国 wrote at 2020/6/28 2:37:26 #

cuanto cuesta levitra 20 mg  levitra - https://levitrao.com/  vardenafil 20mg kaufen

levitra 20mg tablet 美国 wrote at 2020/6/29 16:51:55 #

vardenafil paypal  buy levitra online cheap - https://levitrao.com/  which is more expensive levitra or viagra

buy cialis 美国 wrote at 2020/7/1 4:46:39 #

cialis tab price mixing viagra and cialis together https://canadianpillsbuy.com/ - cialis can cialis cause skin rash  buy cialis - https://cialisk.com/  ortho specialists of the 4 states

viagra prices 美国 wrote at 2020/7/1 6:17:45 #

sildenafil viagra  generic viagra - http://pharmexpresstore.com  directions for use of viagra

Tutorial Hijab srgi empat 美国 wrote at 2020/7/8 3:15:08 #

Hello there! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I'm getting fed up of Wordpress because I've had problems with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

添加评论



biuquote
微笑得意调皮害羞酷大笑惊讶发呆喜欢可怜尴尬闭嘴噘嘴皱眉伤心抓狂呕吐坏笑漫骂发怒
Loading


RecentComments

评论 RSS

Statistics

989 篇文章
0 个单页
792526 条评论
11 次评分
1409979 次访问
访问统计开始于 2019年12月15日
平均日访问 6811 次
当前 136 人在线