首页 \ 问答 \ 如何按部门显示报告(How to display a report by Department wise)

如何按部门显示报告(How to display a report by Department wise)

如何按部门显示报告

使用Crystal Report 8.5

ID Name Department

001 raja IT
002 Vijay IT
003 Ram CSE
So on...

按部门显示每个页面。

一旦IT部门完成,然后转到新页面并显示CSE部门,就像我需要的那样。

如何制作水晶报告?


How to display a report by Department wise

Using Crystal Report 8.5

ID Name Department

001 raja IT
002 Vijay IT
003 Ram CSE
So on...

Display an Each Page by Department wise.

Once IT Department is completed then go to new page and display CSE Department, like that I need.

How to make in crystal report?


原文:https://stackoverflow.com/questions/1061817
更新时间:2024-05-05 18:05

最满意答案

我认为保存过程需要在imagePicker之外。 看起来应该是这样的。 并且当所有事情都在周围时,应该运行图像完成。

        PFUser *profile = [PFUser currentUser];
        NSData *imageData = UIImageJPEGRepresentation(profileImage.image, 0.8);
        NSString *filename = [NSString stringWithFormat:@"%@", profile.username];
        PFFile *imageFile = [PFFile fileWithName:filename data:imageData];
       [profile setObject:imageFile forKey:@"profileimageFile"];
       [profile saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
            if (!error) {
                // Show success message
            }
            else {
                // Show error message
            }       
        }];

要保存配置文件图像,您需要先选择要保存图像的位置。 在这种情况下是在currentUser。 然后您选择的图像转换为NSData文件。 然后,您需要为该数据文件命名。 然后你创建了一个PFFile 。 然后保存该文件进行解析。

获取图像有点相同但倒退:

PFFile *userImageFile = [PFUser currentUser][@"profileImageFile"];
[userImageFile getDataInBackgroundWithBlock:^(NSData *imageData, NSError *error) {
    if (!error) {
        UIImage *image = [UIImage imageWithData:imageData];
    }        
}];

I think the saveing process needs to be outside the imagePicker. It should look something like this. And should run when everything is around picking the image is done.

        PFUser *profile = [PFUser currentUser];
        NSData *imageData = UIImageJPEGRepresentation(profileImage.image, 0.8);
        NSString *filename = [NSString stringWithFormat:@"%@", profile.username];
        PFFile *imageFile = [PFFile fileWithName:filename data:imageData];
       [profile setObject:imageFile forKey:@"profileimageFile"];
       [profile saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
            if (!error) {
                // Show success message
            }
            else {
                // Show error message
            }       
        }];

To save the profile image you need to first select where you want to save the image. In this case is at the currentUser. Then you convert the image that you picked in to a NSData file. Then you need to give that datafile a name. Then out of that you create a PFFile. And then you save that file to parse.

Geting the Image back is kind of the same but backwards:

PFFile *userImageFile = [PFUser currentUser][@"profileImageFile"];
[userImageFile getDataInBackgroundWithBlock:^(NSData *imageData, NSError *error) {
    if (!error) {
        UIImage *image = [UIImage imageWithData:imageData];
    }        
}];

相关问答

更多
  • 这是有用的:需要发生什么(和@ Vidhyanand900在正确的轨道上,但不是100%)是在后台保存图像,然后setObject将图像设置为当前用户。 NSData *imageData = UIImageJPEGRepresentation(_imgView.image, 1.0); PFFile *imageFile = [PFFile fileWithName:@"img.png" data:imageData]; [imageFile saveInBackground]; PFUser *use ...
  • 您无法保存NSData以进行解析。 在此处查看有效的数据类型: https : //parse.com/docs/ios/guide#objects-data-types 。 您正在使用相同的用户对象查询用户对象。 您可以使用PFUser.currentUser()。 func updateCurrentUserProfilePicture(image: UIImage) { let avatar = PFFile(name: PFUser.currentUser()!.username, data ...
  • 您永远不会将mContext设置为任何值,默认值为null。 将其分配给活动。 You never set mContext to any value, the default is null. Assign it to the activity.
  • 我想你正在尝试做这样的事情。 这只是一个例子。 有很多工作要做,但希望这会让你开始。 我没有运行或测试此代码。 这个想法是将你的图像保存为PFFiles ,并为每个文件创建一个“tile” PFObject 。 然后将所有' PFObject保存为图像PFObject的'tiles'键。 然后在objectId需要时调用图像。 祝你好运。 let appleTiles = ["apple1, apple2, apple3"] let orangeTiles = ["orange1, orange2, ora ...
  • 我认为保存过程需要在imagePicker之外。 看起来应该是这样的。 并且当所有事情都在周围时,应该运行图像完成。 PFUser *profile = [PFUser currentUser]; NSData *imageData = UIImageJPEGRepresentation(profileImage.image, 0.8); NSString *filename = [NSString stringWithFormat:@"%@", profil ...
  • 我找到了我的问题的解决方案 使用以下方法 - (UIImage*)upsideDownBunny:(CGFloat)radians withImage:(UIImage*)testImage { __block CGImageRef cgImg; __block CGSize imgSize; __block UIImageOrientation orientation; dispatch_block_t createStartImgBlock = ^(void) { ...
  • 我就是这样做的。 您有多个地方可以将其保存到,用户的Documents文件夹通常是最好的: func cacheImageAsPNG(image: UIImage, localID: String) { let userDocumentsURL = URL(fileURLWithPath: NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]) if let imageData = ...
  • 不要使用getGraphics()。 这不是你如何做自定义绘画。 相反,您需要覆盖paintComponent()方法并在该方法中执行自定义绘制。 阅读自定义绘画的Swing教程中的部分以获取更多信息和工作示例。 BufferedImage image = (BufferedImage)mainPanel.createImage(300, 300); 所有这一切都是创建一个空的BufferedImage。 您需要使用Graphics对象在BufferedImage上绘制一些东西。 基本代码如下: Buff ...
  • 您在设备上没有足够的空间。 所以释放一些空间或者动态尝试gzip: docker save myimage:0.0.1-SNAPSHOT | gzip > img.tar.gz 要恢复它,docker会自动实现gziped: docker load < img.tar.gz You have no enough space left on device. So free some more space or try gzip on the fly: docker save myimage:0.0.1-S ...
  • 问题是setData()是一个异步调用,你需要在下一个位之前等待它完成。 http://parse.com/docs/js/symbols/Image.html#setData 这是一个片段: Parse.Cloud.httpRequest({ url: request.object.get("profilePicture").url() }).then(function(response) { var image = new Image(); return image.setDat ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。