|
Google returns results
convert pdf into image
I would be concerned about the size. Smaller it is then the harder it is to read.
Also when you say files (plural) hopefully you don't want multiples in one image. That would make the size even more relevant.
If large enough you would probably need to zip it.
|
|
|
|
|
IronPdf has a RasterizeToImageFiles method in its PdfDocument object that should do the trick. We've been using IronPdf for several years and have been pleased.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
I have Report automation tool created in WPF and the code is written in C# in visual stdudio. I have many reports in my RA tool. Now I want to create Pitchbook from these reports. Say I already have a class called ABC which runs a report called ABC and has 3 slides. I want to create something like to pick 2 slides from this report and 2 slides from another report like xyz and create a book. This process should be automated. Please let me know how can I do this
|
|
|
|
|
Well, for a start, you haven't defined what a "pitchbook" is. The term presumably means something to you, but means nothing to the rest of us.
Then there's the issue that you don't appear to have worked out your precise requirements. You need to work out precisely what you want to do, all the edge case, etc. - some vague hand-waving "do something like ..." statements don't count.
You also haven't told us what reporting tool you are using. If it's a custom tool you've written, then you are the only person who can possibly know how to do this.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I guess you need to create "reporting files" that you can query for your "book" instead of going "straight to print".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I doubt the solution has anything to do with WPF.
Since you cannot define a page from the report until the report actually runs that means all that matters is how the output of the report is produced.
Then something would need to process that output to pick out the necessary pages.
Member 16211985 wrote: I have many reports in my RA tool
Probably even more true because of this. Probably means the code was written by multiple people without following any modularization that you could take advantage of.
|
|
|
|
|
I decided to "upgrade" my dialog box forms with Accept and Cancel buttons properties! Now my dialog boxes were more user friendly.
A week later I began testing on one of these dialog forms which contained a lot of buttons and content, but I ran into a bit of a pickle. One of the many buttons had a click event coded to open a 2nd level modal dialog and when this 2nd dialog box closed the parent dialog it was invoked from closed as well. I couldn't figure out why for the longest time but luckily found the answer on the www.
When you set a form's "Cancel" property to a button the genius behind VS sets that button's "DialogResult" property to DialogResult.Cancel. When the button is clicked no matter what happens inside the buttons click handler the parent form will close with a DialogResult.Cancel.
If you copy a Cancel button with DialogResult property set to DialogResult.Cancel and paste it on a form the genius behind VS copies the DialogResult property as well, you now have two buttons with DialogResult.Cancel on your form, no warnings of course, it's what you intended to do!
I didn't even know buttons had the "DialogResult" property and that it could be used to automatically close a form, obviously it was there all along but I skimmed past it and never tried to experiment with it.
Funny thing is the form's Accept property does not change the OK button's DialogResult property to OK when that button is selected.
I suppose this feature helps eliminate the need to code Cancel button click events, but I'm so used to doing it anyway I probably won't bother using it in the future.
Any idea when this feature was added? Was it there all along?
|
|
|
|
|
Hello all.
I need to create a gantt chart using data from employee table. It need to display the period of time, start date, end date and the name of the task.
Can someone help me with this?
(Please, i`m in the last year of college and i need to finish it in time )
|
|
|
|
|
If you are looking for someone to write your code, possibly try here Freelancer.com[^]
Otherwise, post what you've tried, where you are stuck, and ask specific questions, you are much more likely to get help that way.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Sorry, couldn't find a more appropriate forum to post this.
We have a Angular/.NET Core app that we are attempting to upgrade to .NET 8. I have the Angular Language Service installed and working with no problem in VS2019. With VS2022, not so much. Every time I load any project with Angular code I get this error,
"Task Failed - Activating language client Angular Language Service Extension: The JSON-RPC connection with the remote party was lost before the request could complete."
I've tried everything I can think of, including creating a ticket with MS. Surprisingly, they actually attempted to help resolve the problem. We renamed the cache folder, ran VS as admin, reset all options, disabled the extension auto update, repaired VS2022 (appropriate reboots), checked the Microsoft.VisualStudio.Default.err file, checked the log files (%temp%\VSLogs), uninstalled/reinstalled VS2022 (cleared temp files, rebooted), insure Node.js is installed, insure Win11SDK (both) are installed.
I'm at a complete loss as is everyone else. Other devs working on Angular/.NET projects in VS2022 do not have this issue. I was seeing this error before attempting to upgrade anything on the solution. Oddly, break points in TypeScript files work, but viewing the value of TypeScript variables does not work nor does F12 in TypeScript code. I'd rather get this working in VS2022 instead of using VS Code for Angular development and VS2022 for .NET, that's just ugly and messy.
"...JavaScript could teach Dyson how to suck." -- Nagy Vilmos
|
|
|
|
|
Just noticed Angular is "owned" by Google. For me, being a .NET (MS) "person", that would be a non-starter from day 1 in terms of future proofing any mission critical system. I know that doesn't help you; just saying if you have any future say while on the "leading" edge. "VS Code for Angular" it is then.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Because you are saying MS keeps old technologies alive?
|
|
|
|
|
I don't mix my (obsolete) primary with "3rd party". Whatever floats your boat. Or sinks it as the case might be.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
It wasn't my call. In fact I campaigned against is extensively. We have been a MS shop for years. It was brought in by the previous manager and his friend/buddy/pal/ex-employee/consultant that the company paid thousands of dollars for extra work even though they refuse to pay extra money to any current devs who are willing to do extra work from home after hours. Conflict of interest and all that, but paying a former employee who is buds with the manager is not. The current manager thinks it's great. Unfortunately we found out after the fact that it is less than secure. We were informed of this by a security consultant we hired, because we can't figure this out on our own apparently. But we're still using it. We have a new site that is again begin written in Angular, go figure.
"...JavaScript could teach Dyson how to suck." -- Nagy Vilmos
|
|
|
|
|
That sounds sooooooo familiar. Brothers. Cousins. Seen it all. (Custom) Frameworks are the remnants of someone else's project. (I had one "keener" lobby for a framework he saw in a book. For a national company project I was leading. NET 1.x).
Every project I develop becomes it's own framework. SCADA. ERP. RTS.
Nothing ever went begging for an "Angular" or Node.js or whatever.
The frustration of dealing with someone else's "black box". (Unless they pay the bills; but that gets old too. As a contractor).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
In general I wouldn't be so over-commited to Microsoft stack as the other poster in this thread. Technology landscape changes. I can't state that it's always for good but at least it's useful to have understanding what tools are available.
Regarding the original question: have you tried other editors? Say, angular language service for Visual Studio Code?
|
|
|
|
|
I have created tables using ASP.NET Core Identity. I need to refer my `AspNetUser` table to my `Job` table. I have created a `CustomIdentity` class which inherits from `IdentityUser`.
This is my code:
using Microsoft.AspNetCore.Identity;
namespace InventoryManagement.Models
{
public class CustomIdentity :IdentityUser
{
public string IsEngineer { get; set; }
public string authpassword { get; set; }
}
}
And this is my `DbContext` class for `IdentityDbContext`:
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace InventoryManagement.Models.Data
{
public class AuthDbContext : IdentityDbContext<CustomIdentity>
{
public AuthDbContext(DbContextOptions<AuthDbContext> options) :base(options)
{
}
}
}
`ASPNETUser` table got created and I am able to insert values into it using `UserManager` to register users. I need to refer this user in my Job table. And here is my code for `Jobdbcontext` where I declare all my other tables:
using Microsoft.EntityFrameworkCore;
namespace InventoryManagement.Models.Data
{
public class JobDBcontext : DbContext
{
public JobDBcontext(DbContextOptions<JobDBcontext> options) : base(options)
{
}
public DbSet<Job> Jobs { get; set; }
public DbSet<Customer> Customers { get; set; }
public DbSet<JobType> Jobtype { get; set; }
public DbSet<ManufacturingBay> Manufacturingbay { get; set; }
public DbSet<ProjectCategory> Projectcategory { get; set; }
public DbSet<Currency> Currency { get; set; }
public DbSet<Category> ItemCategory { get; set; }
public DbSet<Budget> ItemBudget { get; set; }
public DbSet<SubCategory> ItemSubcategory { get; set; }
public DbSet<ItemMaster> ItemMaster { get; set; }
public DbSet<Bom> Bom { get; set; }
public DbSet<Test> Test { get; set; }
public DbSet<UOM> UomMaster { get; set; }
public DbSet<PR> PR { get; set; }
public DbSet<PRDetails> PRDetails { get; set; }
public DbSet<Supplier> Supplier { get; set; }
public DbSet<Purchase> Purchase { get; set; }
public DbSet<PurchaseDetails> PurchaseDetails { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
if (modelBuilder == null)
{
throw new ArgumentNullException(nameof(modelBuilder));
}
modelBuilder.Entity<JobType>().HasKey(jt => jt.Jobtypeid);
modelBuilder.Entity<ProjectCategory>().HasKey(jt => jt.Pid);
modelBuilder.Entity<Currency>().HasKey(jt => jt.cid);
modelBuilder.Entity<Bom>().HasKey(jt => jt.BID);
modelBuilder.Entity<Budget>()
.HasKey(b => b.ID);
modelBuilder.Entity<Category>()
.HasKey(c => c.CategoryId);
modelBuilder.Entity<SubCategory>()
.HasKey(s => s.SubCategoryId);
modelBuilder.Entity<ItemMaster>()
.HasKey(i => i.itemid);
modelBuilder.Entity<UOM>()
.HasKey(i => i.uid);
modelBuilder.Entity<Budget>()
.HasMany(b => b.categories)
.WithOne(c => c.Budget)
.OnDelete(DeleteBehavior.Cascade);
modelBuilder.Entity<Category>()
.HasMany(c => c.SubCategories)
.WithOne(i => i.category)
.OnDelete(DeleteBehavior.Cascade);
modelBuilder.Entity<PR>()
.HasKey(p => p.Prid);
modelBuilder.Entity<PRDetails>()
.HasKey(d => d.PrDetailId);
modelBuilder.Entity<PRDetails>()
.HasOne(d => d.PR)
.WithMany(p => p.PRDetails)
.HasForeignKey(d => d.Prid)
.OnDelete(DeleteBehavior.NoAction);
modelBuilder.Entity<PRDetails>()
.HasOne(d => d.Bom)
.WithMany()
.HasForeignKey(d => d.Bomid)
.OnDelete(DeleteBehavior.Cascade);
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<Purchase>()
.HasKey(p => p.POID);
modelBuilder.Entity<PurchaseDetails>()
.HasKey(d => d.potblid);
modelBuilder.Entity<PurchaseDetails>()
.HasOne(d => d.Purchase)
.WithMany(p => p.PurchaseDetails)
.HasForeignKey(d => d.POID)
.OnDelete(DeleteBehavior.NoAction);
modelBuilder.Entity<PurchaseDetails>()
.HasOne(d => d.prdetails)
.WithMany()
.HasForeignKey(d => d.PrDetailId)
.OnDelete(DeleteBehavior.Cascade);
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<Job>()
.HasOne(j => j.User)
.WithMany()
.HasForeignKey(j => j.UserId)
.IsRequired();
}
}
}
This is my `Job` model where I am referencing my CustomIdentity.
namespace InventoryManagement.Models
{
public class Job
{
public int Jobsequenceno { get; set; }
public int JobId { get; set; }
public string JobName { get; set; }
public int Qty { get; set; }
public Customer Customer { get; set; }
public DateTime JobDate { get; set; }
public JobType JobType { get; set; }
public ManufacturingBay ManufacturingBay { get; set; }
public ProjectCategory Projectcategory { get; set; }
public Currency currency { get; set; }
public Double JobRate { get; set; }
public Double Ordervalue { get; set; }
public Double Ordervalueinbasecurrency { get; set; }
public string JobDescription { get; set; }
public string Paymentterms { get; set; }
public string Deliveryterms { get; set; }
public string UserId { get; set; }
public CustomIdentity User { get; set; }
}
}
Upon running migrations of 2 `DbContext` tables are created ..but upon running migration of JobDBcontext another class called customidentity is created which has exactly same column like my ASPNetUser and my job table is referring to that class.
ALTER TABLE [dbo].[Jobs] WITH CHECK
ADD CONSTRAINT [FK_Jobs_CustomIdentity_UserId]
FOREIGN KEY([UserId]) REFERENCES [dbo].[CustomIdentity] ([Id])
ON DELETE CASCADE
I want the Job table to refer to the `ASPNETUSER` table which is having value instead of this CustomIdentity table.... I am able to insert user data to Job table.but upon listing job I am referring to `CustomIdentity` which is showing null..
[HttpGet("List")]
public async Task<IActionResult> List()
{
var Joblist = await jobdbcontext.Jobs.Include(j => j.Customer).Include(j => j.JobType).Include(j => j.ManufacturingBay).
Include(j => j.Projectcategory).
Include(j => j.CustomIdentity).
Include(j => j.currency).
Include(j =>j.User).
ToListAsync();
return View(Joblist);
}
How to resolve this?so that my Job table will refer ASPNetUser table which is having value instead of CustomIdentity table.CustomIdentity model is created to add extra columns in my ASPNetUser table.I am new to this ..can anyone help on this ?
|
|
|
|
|
Navigation properties cannot span multiple DbContext types.
If you want an entity type in one context to map to the same table as a type in a different context, then you will need to use the OnModelCreating method to explicitly map it to the correct table. You may also need to exclude it from migrations.
There's a good example in this blog post for EF Core 5 RC1:
Announcing Entity Framework Core (EFCore) 5.0 RC1 - .NET Blog[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Does a .NET 8 application need to be "published" before it can run properly?
Or is building it good enough?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Building it is good enough. Publishing just packages the thing up for distribution.
You don't even need to "publish" the app is you know all the files in the app that must be distributed. You can just pick out the files and make an installer with them if you know what files you need.
|
|
|
|
|
Thanks! I'm making my first foray into .NET 8 coming from the .NET Framework.
Never thought I could learn this, but it's coming along.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I only use Publish if it's an Azure web (Blazor) app or Azure Function app. For console apps I just copy everything in and under <project>\bin\Release\net8.0 to the new destination.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
A tool for diagnosing which DLL is unable to be loaded by a subject DLL? I've used DUMPBIN to list the static dependencies of the DLL and they are very few and all of them are in the same directory as the subject DLL.
This isn't my DLL so I have no idea what it's doing in its DllLoad routine. But the Windows loader is just a black box. It gives no insight into what's going on during the DLL load.
This is a .NET 8 project that is calling functions in the subject DLL through pinvoke, so maybe the .NET loader knows something.
Anyone know how to debug this?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
First thought is to start removing dll's and see if the messages change / appear. Look at build dates.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Thanks Gerry, I finally figured it out!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|