如何按部门显示报告(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
最满意答案
我认为保存过程需要在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 ...
-
解析图像保存问题(Parse Image Save Issue)[2022-10-26]
我认为保存过程需要在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) { ...
-
如何保存图像(How to save image)[2022-11-12]
我就是这样做的。 您有多个地方可以将其保存到,用户的Documents文件夹通常是最好的: func cacheImageAsPNG(image: UIImage, localID: String) { let userDocumentsURL = URL(fileURLWithPath: NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]) if let imageData = ... -
为什么我的图像不能保存(Why my image does not save)[2023-11-24]
不要使用getGraphics()。 这不是你如何做自定义绘画。 相反,您需要覆盖paintComponent()方法并在该方法中执行自定义绘制。 阅读自定义绘画的Swing教程中的部分以获取更多信息和工作示例。 BufferedImage image = (BufferedImage)mainPanel.createImage(300, 300); 所有这一切都是创建一个空的BufferedImage。 您需要使用Graphics对象在BufferedImage上绘制一些东西。 基本代码如下: Buff ... -
Docker保存问题(Docker save issue)[2022-12-19]
您在设备上没有足够的空间。 所以释放一些空间或者动态尝试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 ...