|
|
|
Don't "output this report into a printable file". Output as XML and allow the user to transform it as desired --
The Lounge[^] .
|
|
|
|
|
it is lucky to get your post. your post is inspirational.
diligent hands rule....
|
|
|
|
|
|
Non curo?
You do formatting as you please.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
PDF is a pain to work with.
Apparently, it's an industry standard, but no standard libraries exist and no one can actually work with it.
As you say, most PDF libraries are not free (and often very expensive, way too expensive for your one off report).
There is HTML-to-PDF, but in my experience, that's a PITA.
HTML simply wasn't made to put things on A4 format.
So I've tried some stuff and ended up with PDFsharp & MigraDoc[^].
It has most features you'd want in a PDF generator and it's free.
One option I'm missing is that of signing a PDF, which would be awesome.
It worked for me, but use at your own risk, obviously
|
|
|
|
|
thanks for this great link! I will use this package!
one more question: what is the difference between PDFsharp and MigraDoc?
it seems like both can create PDF files.
diligent hands rule....
|
|
|
|
|
I believe PDFsharp is the engine and MigraDoc is an (optional) layer on top of it to make things easier: What is PDFsharp and MigraDoc?[^]
The NuGet package I use is PDFsharp-MigraDoc and it has everything I need
|
|
|
|
|
this link is great. thanks!
diligent hands rule....
|
|
|
|
|
... I bought a copy of Heroes of Might and Magic 3 a couple of months ago - one of the best games of the world in his genre (even after all these years). It is not even retro-gaming, it is gaming, plus the fan base made a great port to HD quality graphics.
But it shortened my nights quite a bit . Damn, what an addiction, but I am almost through it. And I am still fascinated by the game AI - awesome programming.
|
|
|
|
|
I've revisited the series recently, too! I've been slowly playing through the second.
I didn't appreciate them when they were 'current', or maybe they were just too hard at the time. I'm having more fun this go.
Good games, for sure.
|
|
|
|
|
|
I have this problem with books.
|
|
|
|
|
Last year I read 99 books on Kindle Unlimited plus a bunch outside the Kindle app.
I am forcing myself to not read since January to not drop my productivity in my new company.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
|
Somehow Rockit makes me think of this[^]
|
|
|
|
|
Not sure what that is -- maybe an Aussie product?? -- and I'm afraid to ask.
|
|
|
|
|
Maybe you are too young to know about this, every housewife in the sixties used it (in the Netherlands at least)
(and no, it's not a drug)
|
|
|
|
|
|
See Richard's answer, he's ancient too
|
|
|
|
|
No, it was common in the UK as well. Throw a bag into the laundry and it adds a bleaching agent.
|
|
|
|
|
Since I'm moving to VS2022, I've decided to reorganise my (rather chaotic) library and utility code base: some of it is still building for x86 in a 64 bit world, and there are a lot of possible DLL's / projects to include in new project reference.
So I've set aside a couple of days to reorganise it all into four Solutions:
Templates (for VS templates as I have to regenerate them each time I move to a new version, and I use half a dozen or so)
Utility Code (which is generic and doesn't interact with DB's, Displays, etc).
Utility Controls
Utility Applications
So, I create my first Template project - a Class Library with my default Regions added, an automatic Timestamp, and (later) the standard references to the Utility Code. Based on teh VS Class Library template.
Compile, it's fine. Export as a template, work around MS lies, get it recognised as a template I can use in a C\ app.
Create the new Utility Code project, using the "Class Library with Regions" template.
Add the first CS file from the previous layout.
Add the second ... Wait a minute ... what are those red lines?
Who the decided that reference types would default to non-nullable in C# 8.0?
That's a breaking change you halfwit!
Massive sections of my code no longer compile any more due to this stupidity.
I see what you were trying to do, but making it a breaking change is just moronic - and means I have to disable iot globally and slowly work my way into it - particularly as many default method parameters use null.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Yep, as he said you can set an option.
Yep, it's a breaking (unbreaking by config) change.
Their heart is certainly in the right place in trying to catch issues as you code.
I can't think of a better way to go about it and they DID us notice a starting a couple of releases back that it was coming.
I know that doesn't help your brief WTF shock.
As someone further on said, a reasonable idea and leads to less breakable code and the fix isn't tough in the singular instance, but it depends on how many instances you have how big of a task to make the changes.
Good luck!
|
|
|
|