当前位置: > 热点>正文

crystal report(Crystal Report(水晶报表)求教,如何把有日期范围的记录,按日历形式打印出来)

2023-03-04 08:03:15 互联网 热点

安装Syntax highlighter Ckeditor plugin下载Ckeditor plugin解压到sites/all/module/ckeditor/plugins/syntaxhighlight然后编辑/sites/all/modules/ckeditor/ckeditor.config.js增加28行跟75行?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 /*《a href=“/project/copyright“ class=“alinks-link“ title=“模块介绍:可以设定网站整体和单篇内容的著作权/授权声明,如何在Drupal 中设置 Ckeditor模块 使用Syntaxhighlighter代码高亮1,“》Link《/a》’,’Unlink’,’Anchor’,’《a href=“/project/linkit“ class=“alinks-link“ title=“模块介绍:通过使用一个自动完成字段,安装《a href=“首先下载 Ckeditor 模块,安装Syntax Highlighter模块和库下载Syntax Highlighter 模块,能够为 Drupal 集成数十种国内外流行的所见即所得编辑器,“》Image《/a》’,’Flash’,’Table’,’HorizontalRule’,’《a href=“/project/smiley“ class=“alinks-link“ title=“模块介绍: 让文本编辑器支持表情“》Smiley《/a》’,’SpecialChar’], [’Maximize’, ’ShowBlocks’], ’/’, [’Format’], [’Bold’,’Italic’,’Underline’,’Strike’,’-’,’Subscript’,’Superscript’], [’NumberedList’,’BulletedList’,’-’,’Outdent’,’Indent’,’Blockquote’], [’JustifyLeft’,’JustifyCenter’,’JustifyRight’,’JustifyBlock’,’-’,’BidiRtl’,’BidiLtr’], [’《a href=“/project/link“ class=“alinks-link“ title=“模块介绍:与 File Field 和 Image Field 类似,下载并解压到C:\WINDOWS\SYSTEM32文件夹下。

Crystal Report(水晶报表)求教,如何把有日期范围的记录,按日历形式打印出来

先将控件工具箱调出来。视图-工具栏-控件工具箱。在控件工具箱上最下面那个按钮是其他控件,打开它,找到Microsoft Date and Time Picker Control,这个就是日历控件。然后在一个单元格上拖画一个框,日历控件就出来了。然后在控件工具箱上退出设计模式,日历控件就能使用了。使用日历控件需要Mscomct2.ocx类库包,在C:\WINDOWS\SYSTEM32文件夹下。如果没有,可去下载一个。下载并解压到C:\WINDOWS\SYSTEM32文件夹下,然后用regsvr32 mscomct2.ocx命令注册一下。

如何在Drupal 中设置 Ckeditor模块 使用Syntaxhighlighter代码高亮

1,安装《a href=“首先下载 Ckeditor 模块,并安装, 然后下载 Ckeditor libraries,解压到/sites/all/libraries,进入后台设置,Drupal6:Administer 》 Site Configuration 》 CkeditorDrupal7:Administer 》 Config 》 Content 》 Ckeditor配置你准备用到Syntaxhighlighter的配置文件。同时要确保确保你的用户角色已获准访问这个Ckeditor的配置确保你的可见性设置正确 2,安装Syntax Highlighter模块和库下载Syntax Highlighter 模块,并且安装下载Syntax Highlight library,解压到/site/all/libraries进入Administation 》 Site Configuration 》 Syntax highlighter(Drupal6)或 Administation 》 Config 》 Content 》 Syntaxhighlighter(Drupal7),勾选你想打开的格式。3,安装Syntax highlighter Ckeditor plugin下载Ckeditor plugin解压到sites/all/module/ckeditor/plugins/syntaxhighlight然后编辑/sites/all/modules/ckeditor/ckeditor.config.js增加28行跟75行?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 /*《a href=“/project/copyright“ class=“alinks-link“ title=“模块介绍:可以设定网站整体和单篇内容的著作权/授权声明。管理者可以设定可选用的著作权种类,呈现在区块或页尾里。手册页面(Book)可以选择性地设定所有子页面为同一著作权声明,并让每一份手册或区域有其自己的著作权声明。“》Copyright《/a》 (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.For licensing, see LICENSE.html or */ /* WARNING: clear browser’s cache after you modify this file. If you don’t do this, you may notice that browser is ignoring all your changes. */CKEDITOR.editorConfig = function(config) { config.indentClasses = [ ’rteindent1’, ’rteindent2’, ’rteindent3’, ’rteindent4’ ]; // [ Left, Center, Right, Justified ] config.justifyClasses = [ ’rteleft’, ’rtecenter’, ’rteright’, ’rtejustify’ ]; // The minimum editor width, in pixels, when resizing it with the resize handle. config.resize_minWidth = 450; // Protect PHP code tags (《?...?》) so CKEditor will not break them when // switching from Source to 《a href=“/project/wysiwyg“ class=“alinks-link“ title=“模块介绍:“What You See Is What You Get” 的首字母缩写,即有“所见即所得”的意思。 Drupal 默认只提供简单的文本框,并未加载任何编辑器。这对于大多数干接触 Drupal 的国内用户来讲,真是十分的不方便 :D WYSIWYG 是用于集成“所见即所得”编辑器的接口,通过使用 WYSIWYG 模块,能够为 Drupal 集成数十种国内外流行的所见即所得编辑器,管理员可根据自己的喜好来选择不同的编辑器。 目前用得比较多的编辑器有:CKEditor, TinyMCE, FCKE“》WYSIWYG《/a》. // Uncommenting this line doesn’t mean the user will not be able to type PHP // code in the source. This kind of prevention must be done in the server // side // (as does Drupal), so just leave this line as is. config.protectedSource.push(/《\?[\s\S]*?\?》/g); // PHP Code config.protectedSource.push(/《code》[\s\S]*?《\/code》/gi); // Code tags config.extraPlugins = ’’; config.extraPlugins += (config.extraPlugins ? ’,syntaxhighlight’ : ’syntaxhighlight’ ); // Define as many toolbars as you need, you can change toolbar names and remove or add buttons. // List of all buttons is here: // This toolbar should work fine with “Filtered HTML“ filter config.toolbar_DrupalFiltered = [ [’Source’], [’Cut’,’Copy’,’Paste’,’PasteText’,’PasteFromWord’,’-’,’SpellChecker’, ’Scayt’], [’Undo’,’Redo’,’Find’,’Replace’,’-’,’SelectAll’,’RemoveFormat’], [’《a href=“/project/image“ class=“alinks-link“ title=“模块介绍:让有特定权限的用户可以上传图片到网站里,并且会自动产生缩图。图片可以使用在文章里(例如透过tinymce编辑工具进行选取),或是作成简单的网络相簿。“》Image《/a》’,’Flash’,’Table’,’HorizontalRule’,’《a href=“/project/smiley“ class=“alinks-link“ title=“模块介绍: 让文本编辑器支持表情“》Smiley《/a》’,’SpecialChar’], [’Maximize’, ’ShowBlocks’], ’/’, [’Format’], [’Bold’,’Italic’,’Underline’,’Strike’,’-’,’Subscript’,’Superscript’], [’NumberedList’,’BulletedList’,’-’,’Outdent’,’Indent’,’Blockquote’], [’JustifyLeft’,’JustifyCenter’,’JustifyRight’,’JustifyBlock’,’-’,’BidiRtl’,’BidiLtr’], [’《a href=“/project/link“ class=“alinks-link“ title=“模块介绍:与 File Field 和 Image Field 类似,Link 也为 CCK 增加了一种扩展类型,即链接字段。通过使用链接字段,用户可以向节点中添加链接,链接包括 URL,标题及可选的 target 属性。“》Link《/a》’,’Unlink’,’Anchor’,’《a href=“/project/linkit“ class=“alinks-link“ title=“模块介绍:通过使用一个自动完成字段,使节点、用户、视图和术语支持内部链接。“》Linkit《/a》’,’LinkToNode’,’LinkToMenu’], [’DrupalBreak’, ’DrupalPageBreak’] ]; /* * DrupalBasic will be forced on some smaller textareas (if enabled) * if you change the name of DrupalBasic, you have to update * CKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME in ckeditor.module */ config.toolbar_DrupalBasic = [ [ ’Format’, ’Bold’, ’Italic’, ’-’, ’NumberedList’,’BulletedList’, ’-’, ’Link’, ’Unlink’, ’Image’ ] ]; /* * This toolbar is dedicated to users with “Full HTML“ access some of commands * used here (like ’FontName’) use inline styles, which unfortunately are * stripped by “Filtered HTML“ filter */ config.toolbar_DrupalFull = [ [’Source’], [’Cut’,’Copy’,’Paste’,’PasteText’,’PasteFromWord’,’-’,’SpellChecker’, ’Scayt’], [’Undo’,’Redo’,’Find’,’Replace’,’-’,’SelectAll’,’RemoveFormat’], [’Image’,’Flash’,’Table’,’HorizontalRule’,’Smiley’,’SpecialChar’], ’/’, [’Bold’,’Italic’,’Underline’,’Strike’,’-’,’Subscript’,’Superscript’], [’NumberedList’,’BulletedList’,’-’,’Outdent’,’Indent’,’Blockquote’], [’JustifyLeft’,’JustifyCenter’,’JustifyRight’,’JustifyBlock’,’-’,’BidiRtl’,’BidiLtr’], [’Link’,’Unlink’,’Anchor’,’Linkit’,’LinkToNode’, ’LinkToMenu’], ’/’, [’Format’,’Font’,’FontSize’], [’TextColor’,’BGColor’], [’Maximize’, ’ShowBlocks’], [’DrupalBreak’, ’DrupalPageBreak’, ’Code’] ]; /* * Append here extra CSS 《a href=“/project/rules“ class=“alinks-link“ title=“模块介绍:可以设置一些规则,当某事件发生时,自动执行某些动作。比如有人回复就自动给作者发信等等。drupal自带的trigger太简单,这个功能比较全,用起来还挺方便。“》rules《/a》 that should be applied into the editing area. * Example: * config.extraCss = ’body {color:#FF0000;}’; */ config.extraCss = ’’; /** * Sample extraCss code for the “marinelli“ theme. */ var themeName = Drupal.settings.ckeditor.theme; if (typeof themeName == “object“) { themeName = Drupal.settings.ckeditor.theme; } if (themeName == “marinelli“) { config.extraCss += “body{background:#FFF;text-align:left;font-size:0.8em;}“; config.extraCss += “#primary ol, #primary ul{margin:10px 0 10px 25px;}“; } if (themeName == “newsflash“) { config.extraCss = “body{min-width:400px}“; } /** * CKEditor’s editing area body ID & class. * See * This setting can be used if CKEditor does not work well with your theme by default. */ config.bodyClass = ’’; config.bodyId = ’’; /** * Sample bodyClass and BodyId for the “marinelli“ theme. */ if (themeName == “marinelli“) { config.bodyClass = ’singlepage’; config.bodyId = ’primary’; }};

discuz7.2怎么在虚拟主机上设置wap

首先你的虚拟主机要支持wap方式浏览然后登陆你的论坛,进入 管理中心 ,点击 全局 选项,找到左侧菜单的WAP设置,点击,然后在右侧根据你的需要进行设置!设置完毕,使用手机浏览器进行浏览测试

WPF关于Tooltip的Binding

新建一个CS类文件主要内容如下public class ImgConverter : IValueConverter { #region IValueConverter 成员public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { DateTime date = (DateTime)value; return date.ToShortDateString(); } object IValueConverter.Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { byte ageInt = (byte)value; return GetImage(ageInt); } object IValueConverter.ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { //string strValue = value.ToString(); //Int16 resultAge; //if (Int16.TryParse(strValue, out resultAge)) //{ // return resultAge; //} return value; } public byte StreamToBytes(Stream stream) { byte bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 stream.Seek(0, SeekOrigin.Begin); return DEncrypt4ImageHelper.DecryptByteFile( bytes); }BitmapImage GetImage(byte rawImageBytes) { BitmapImage imageSource = null; try { using (var stream = new MemoryStream(DEncrypt4ImageHelper.DecryptByteFile(rawImageBytes))) { var bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.StreamSource = stream; bitmap.CacheOption = BitmapCacheOption.OnLoad; bitmap.EndInit(); bitmap.Freeze(); imageSource = bitmap; }//using (MemoryStream stream = new MemoryStream(rawImageBytes)) //{ // stream.Seek(0, SeekOrigin.Begin); // BitmapImage b = new BitmapImage(); // b.SetSource(stream); // imageSource = b; //} } catch (System.Exception ex) { } return imageSource; } #endregion }xaml UserControl 《》 //里加入 xmlns:my=“clr-namespace:上面类的命名空间“xaml 《UserControl.Resources》 //里加入 《my:ImgConverter x:Key=“ImgConvert“/》《/UserControl.Resources》xaml Datagrid下面代码《c1:C1DataGrid.Columns》 //里面加入《c1:DataGridTemplateColumn Header=“内容“》 《c1:DataGridTemplateColumn.CellTemplate》 《DataTemplate》 《Grid Width=“240“ 》 《Image Source=“{Binding 图片Byte ,Converter={StaticResource ImgConvert}}“ HorizontalAlignment=“Left“ Margin=“10,0,0,0“ Width=“24“ Height=“24“ 》 《/Image》 《Label Height=“Auto“ HorizontalAlignment=“Left“ Name=“label1“ VerticalAlignment=“Center“ Margin=“50,0,0,0“ Width=“Auto“ Content=“{Binding 图片名称}“ /》《/Grid》 《/DataTemplate》 《/c1:DataGridTemplateColumn.CellTemplate》 《/c1:DataGridTemplateColumn》 《/c1:C1DataGrid.Columns》如上代码中 图片Byte 和 图片名称 换成你Itemsource里的列名DEncrypt4ImageHelper.DecryptByteFile 是网上的代码 你找一下。我的图片Byte 是加密的byte.所以需要解密。你可以自己改改

模块

版权声明: 本站仅提供信息存储空间服务,旨在传递更多信息,不拥有所有权,不承担相关法律责任,不代表本网赞同其观点和对其真实性负责。如因作品内容、版权和其它问题需要同本站联系的,一经查实,本站将立刻删除。